Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001315, allocations: 99.05 kB / 16.5 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 194 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 47.38 kB / 300 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1321, allocations: 49.44 MB / 349.4 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003345/0.1355, allocations: 1.483 MB / 350.9 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002852/0.1358, allocations: 39.89 kB / 350.9 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.714e-05/0.1359, allocations: 0 / 350.9 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.492e-05/0.136, allocations: 7.938 kB / 350.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.24e-05/0.1361, allocations: 0 / 350.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.1365, allocations: 37.16 kB / 351 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.1366, allocations: 39.86 kB / 351 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.1368, allocations: 11.98 kB / 351 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.813e-05/0.1369, allocations: 15.92 kB / 351 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.206e-05/0.1369, allocations: 15.92 kB / 351 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.1369, allocations: 0 / 351 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.497e-05/0.137, allocations: 4 kB / 351 MB, free: 3.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.588e-05/0.137, allocations: 11.94 kB / 351.1 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.681e-05/0.1371, allocations: 19.91 kB / 351.1 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.1372, allocations: 31.89 kB / 351.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.1372, allocations: 4 kB / 351.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1373, allocations: 0 / 351.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1373, allocations: 0 / 351.1 MB, free: 3.109 MB / 286.1 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.0007257/0.138, allocations: 347.7 kB / 351.5 MB, free: 2.719 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.199e-05/0.1381, allocations: 12.03 kB / 351.5 MB, free: 2.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.66e-05/0.1381, allocations: 4.844 kB / 351.5 MB, free: 2.703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.1384, allocations: 188.3 kB / 351.7 MB, free: 2.48 MB / 286.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.1386, allocations: 30.27 kB / 351.7 MB, free: 2.445 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.1387, allocations: 8.312 kB / 351.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.1391, allocations: 127.8 kB / 351.8 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1391, allocations: 3.938 kB / 351.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.1391, allocations: 4 kB / 351.8 MB, free: 2.293 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1391, allocations: 0 / 351.8 MB, free: 2.293 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.778e-05/0.1392, allocations: 27.86 kB / 351.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002242/0.1395, allocations: 161.6 kB / 352 MB, free: 2.059 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.1398, allocations: 143.8 kB / 352.1 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.268e-05/0.1398, allocations: 20.84 kB / 352.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.1399, allocations: 4 kB / 352.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.1399, allocations: 30.56 kB / 352.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.573e-06/0.1399, allocations: 0 / 352.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002935/0.1402, allocations: 81.56 kB / 352.3 MB, free: 1.738 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/0.1403, allocations: 59.41 kB / 352.3 MB, free: 1.668 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1404, allocations: 110 kB / 352.4 MB, free: 1.551 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.1405, allocations: 25.7 kB / 352.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.979e-05/0.1405, allocations: 84.14 kB / 352.6 MB, free: 1.434 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.1406, allocations: 15.83 kB / 352.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.849e-05/0.1406, allocations: 17.72 kB / 352.6 MB, free: 1.395 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.1408, allocations: 314.8 kB / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.544e-05/0.1409, allocations: 15.98 kB / 352.9 MB, free: 1.062 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.274e-05/0.1409, allocations: 36.3 kB / 352.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.193e-05/0.141, allocations: 56.16 kB / 353 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.141, allocations: 0 / 353 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001121/0.1411, allocations: 69.62 kB / 353.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.1412, allocations: 7.938 kB / 353.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1412, allocations: 0 / 353.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1412, allocations: 4 kB / 353.1 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.977e-05/0.1413, allocations: 7.938 kB / 353.1 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.1413, allocations: 0 / 353.1 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.457e-05/0.1413, allocations: 12.06 kB / 353.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.1413, allocations: 0 / 353.1 MB, free: 0.8359 MB / 286.1 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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.1415, allocations: 121.9 kB / 353.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.1416, allocations: 61.62 kB / 353.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.853e-05/0.1416, allocations: 11.91 kB / 353.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1416, allocations: 3.984 kB / 353.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1417, allocations: 0 / 353.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.1417, allocations: 0 / 353.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.1418, allocations: 161.7 kB / 353.5 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1418, allocations: 4 kB / 353.5 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-06/0.1418, allocations: 0 / 353.5 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.1418, allocations: 7.938 kB / 353.5 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.1419, allocations: 0 / 353.5 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1419, allocations: 0 / 353.5 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1419, allocations: 0 / 353.5 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.142, allocations: 89.28 kB / 353.6 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.1421, allocations: 85.09 kB / 353.6 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.298e-05/0.1421, allocations: 11.88 kB / 353.6 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.554e-05/0.1421, allocations: 8 kB / 353.7 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.726e-06/0.1422, allocations: 3.938 kB / 353.7 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.1422, allocations: 0 / 353.7 MB, free: 176 kB / 286.1 MB Notification: Performance of sorting global known variables: time 5.591e-05/0.1422, allocations: 91.27 kB / 353.7 MB, free: 84 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1422, allocations: 3.938 kB / 353.8 MB, free: 80 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002029/0.1424, allocations: 4 kB / 353.8 MB, free: 76 kB / 286.1 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 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001581/0.1426, allocations: 107.2 kB / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001322/0.1427, allocations: 35.92 kB / 353.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1428, allocations: 0 / 353.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.52e-07/0.1428, allocations: 0 / 353.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007367/0.1435, allocations: 0.718 MB / 354.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003878/0.1439, allocations: 143.5 kB / 354.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.1443, allocations: 0.6848 MB / 355.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.258e-05/0.1443, allocations: 0 / 355.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.526e-05/0.1444, allocations: 11.44 kB / 355.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1444, allocations: 0 / 355.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Templates: time 0.003874/0.1482, allocations: 0.6435 MB / 356.1 MB, free: 13.65 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches