Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002311/0.002311, allocations: 177.7 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.52/2.52, allocations: 205.3 MB / 213.8 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 88 kB / 261.8 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1279/0.1279, allocations: 12.58 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.683e-05/1.685e-05, allocations: 0 / 378.9 MB, free: 75.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.09898, allocations: 50.38 MB / 429.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.441/0.54, allocations: 76.66 MB / 0.4941 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.5403, allocations: 75.08 kB / 0.4942 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002984/0.5433, allocations: 0.8562 MB / 0.495 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5434, allocations: 0 / 0.495 GB, free: 11.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.5434, allocations: 4 kB / 0.495 GB, free: 11.67 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003306/0.5438, allocations: 331.9 kB / 0.4953 GB, free: 11.33 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.5438, allocations: 7.719 kB / 0.4954 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.367e-05/0.5439, allocations: 3.906 kB / 0.4954 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001779/0.544, allocations: 179.6 kB / 0.4955 GB, free: 11.12 MB / 330.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.5442, allocations: 40.12 kB / 0.4956 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.5442, allocations: 10.42 kB / 0.4956 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.003e-05/0.5443, allocations: 13.83 kB / 0.4956 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.5446, allocations: 121.7 kB / 0.4957 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.5446, allocations: 0 / 0.4957 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.5446, allocations: 3.75 kB / 0.4957 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.5447, allocations: 0 / 0.4957 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001127/0.5448, allocations: 137.6 kB / 0.4958 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.545, allocations: 127.6 kB / 0.496 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.545, allocations: 26.02 kB / 0.496 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.5451, allocations: 0 / 0.496 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.5451, allocations: 34.52 kB / 0.496 GB, free: 10.7 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.5451, allocations: 0 / 0.496 GB, free: 10.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001717/0.5453, allocations: 56.33 kB / 0.4961 GB, free: 10.66 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.5453, allocations: 55.16 kB / 0.4961 GB, free: 10.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.682e-05/0.5454, allocations: 106.6 kB / 0.4962 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.5454, allocations: 25.7 kB / 0.4962 GB, free: 10.47 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.653e-05/0.5455, allocations: 80.14 kB / 0.4963 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.775e-05/0.5455, allocations: 11.06 kB / 0.4963 GB, free: 10.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.5455, allocations: 0 / 0.4963 GB, free: 10.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.8e-05/0.5456, allocations: 313.7 kB / 0.4966 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.903e-05/0.5456, allocations: 7.531 kB / 0.4966 GB, free: 10.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.846e-05/0.5457, allocations: 39.02 kB / 0.4967 GB, free: 10.03 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.464e-05/0.5457, allocations: 14.7 kB / 0.4967 GB, free: 10.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.5457, allocations: 3.938 kB / 0.4967 GB, free: 10.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001124/0.5458, allocations: 58.81 kB / 0.4968 GB, free: 9.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.5459, allocations: 7.938 kB / 0.4968 GB, free: 9.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.5459, allocations: 4 kB / 0.4968 GB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.5459, allocations: 3.953 kB / 0.4968 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.081e-05/0.546, allocations: 11.41 kB / 0.4968 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.546, allocations: 3.047 kB / 0.4968 GB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.581e-05/0.5461, allocations: 7.844 kB / 0.4968 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-06/0.5461, allocations: 7.469 kB / 0.4968 GB, free: 9.973 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.588e-05/0.5461, allocations: 118.1 kB / 0.4969 GB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.4e-05/0.5462, allocations: 50.77 kB / 0.497 GB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.708e-05/0.5463, allocations: 12.34 kB / 0.497 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5463, allocations: 0 / 0.497 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.5463, allocations: 3.953 kB / 0.497 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.5463, allocations: 3.719 kB / 0.497 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.839e-05/0.5464, allocations: 135.6 kB / 0.4971 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5464, allocations: 0 / 0.4971 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.576e-06/0.5464, allocations: 0 / 0.4971 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.5464, allocations: 0 / 0.4971 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.5465, allocations: 3.062 kB / 0.4971 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5465, allocations: 0 / 0.4971 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5465, allocations: 0 / 0.4971 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.5466, allocations: 89.02 kB / 0.4972 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.999e-05/0.5467, allocations: 84.86 kB / 0.4973 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.5467, allocations: 0 / 0.4973 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.832e-05/0.5468, allocations: 9.828 kB / 0.4973 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-06/0.5468, allocations: 0 / 0.4973 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.789e-06/0.5468, allocations: 0 / 0.4973 GB, free: 9.492 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.202e-05/0.5469, allocations: 86.69 kB / 0.4974 GB, free: 9.418 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5469, allocations: 0 / 0.4974 GB, free: 9.418 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002645/0.5471, allocations: 11.75 kB / 0.4974 GB, free: 9.414 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001035/0.5472, allocations: 98.41 kB / 0.4975 GB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001082/0.5474, allocations: 26.22 kB / 0.4975 GB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5474, allocations: 0 / 0.4975 GB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.21e-07/0.5474, allocations: 0 / 0.4975 GB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.548, allocations: 0.7156 MB / 0.4982 GB, free: 8.629 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002263/0.5482, allocations: 76.89 kB / 0.4983 GB, free: 8.559 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.5484, allocations: 0.6858 MB / 0.4989 GB, free: 7.859 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.53e-05/0.5484, allocations: 4.031 kB / 0.4989 GB, free: 7.855 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.22e-05/0.5484, allocations: 9.688 kB / 0.499 GB, free: 7.848 MB / 330.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5485, allocations: 3.844 kB / 0.499 GB, free: 7.848 MB / 330.7 MB Notification: Performance of Templates: time 0.003212/0.5517, allocations: 0.5844 MB / 0.4995 GB, free: 7.781 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches