Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001537/0.001537, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001749/0.001749, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001332, allocations: 63.97 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1395, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003946/0.1436, allocations: 1.441 MB / 360.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002997/0.1439, allocations: 35.84 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.144, allocations: 0 / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.838e-05/0.1441, allocations: 3.938 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.127e-05/0.1442, allocations: 3.938 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.1445, allocations: 31.97 kB / 360.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.1446, allocations: 39.91 kB / 360.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1448, allocations: 7.984 kB / 360.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.395e-05/0.1448, allocations: 19.92 kB / 360.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.503e-05/0.1449, allocations: 19.92 kB / 360.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.1449, allocations: 4 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.364e-05/0.1449, allocations: 4 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.837e-05/0.145, allocations: 11.94 kB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.249e-05/0.145, allocations: 19.91 kB / 360.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.1451, allocations: 35.89 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1451, allocations: 4 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.1451, allocations: 0 / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1452, allocations: 3.938 kB / 360.6 MB, free: 11.64 MB / 302.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.0005247/0.1457, allocations: 343.5 kB / 360.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1457, allocations: 12.03 kB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.277e-05/0.1458, allocations: 8.844 kB / 360.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.1461, allocations: 192.1 kB / 361.1 MB, free: 11 MB / 302.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.0001244/0.1463, allocations: 30.27 kB / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.1463, allocations: 12.38 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.1466, allocations: 123.8 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1466, allocations: 3.938 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.1467, allocations: 4 kB / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1467, allocations: 0 / 361.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.054e-05/0.1468, allocations: 19.98 kB / 361.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000187/0.147, allocations: 161.7 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.1472, allocations: 147.7 kB / 361.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.447e-05/0.1473, allocations: 24.84 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.1473, allocations: 0 / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.1473, allocations: 34.56 kB / 361.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.1473, allocations: 0 / 361.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002314/0.1476, allocations: 77.62 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.1477, allocations: 63.34 kB / 361.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.253e-05/0.1478, allocations: 105.8 kB / 361.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.1478, allocations: 25.7 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.1478, allocations: 92.02 kB / 362 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.1479, allocations: 7.891 kB / 362 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-05/0.1479, allocations: 21.72 kB / 362.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.148, allocations: 314.8 kB / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.065e-05/0.1481, allocations: 11.98 kB / 362.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.269e-05/0.1481, allocations: 36.3 kB / 362.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.895e-05/0.1482, allocations: 56.22 kB / 362.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1482, allocations: 0 / 362.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001144/0.1483, allocations: 73.47 kB / 362.5 MB, free: 9.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.1483, allocations: 7.938 kB / 362.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.1484, allocations: 4 kB / 362.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.1484, allocations: 0 / 362.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.016e-05/0.1484, allocations: 4 kB / 362.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.1485, allocations: 4.156 kB / 362.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.587e-05/0.1485, allocations: 4 kB / 362.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.1485, allocations: 4 kB / 362.6 MB, free: 9.363 MB / 302.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.0001041/0.1486, allocations: 121.7 kB / 362.7 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.1487, allocations: 65.62 kB / 362.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.1488, allocations: 7.953 kB / 362.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1488, allocations: 448 / 362.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1488, allocations: 0 / 362.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1488, allocations: 0 / 362.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.1489, allocations: 173.7 kB / 362.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.149, allocations: 0 / 362.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-06/0.149, allocations: 0 / 362.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.149, allocations: 3.938 kB / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.149, allocations: 0 / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.149, allocations: 3.938 kB / 362.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.149, allocations: 0 / 362.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001444/0.1492, allocations: 92.97 kB / 363 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.1492, allocations: 81.09 kB / 363.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.1493, allocations: 15.94 kB / 363.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.574e-05/0.1493, allocations: 0 / 363.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-06/0.1493, allocations: 0 / 363.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.1493, allocations: 4 kB / 363.1 MB, free: 8.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.983e-05/0.1494, allocations: 87.27 kB / 363.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1494, allocations: 0 / 363.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002061/0.1496, allocations: 8 kB / 363.2 MB, free: 8.605 MB / 302.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.0001588/0.1498, allocations: 103.2 kB / 363.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001719/0.15, allocations: 39.92 kB / 363.4 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.15, allocations: 0 / 363.4 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.15, allocations: 0 / 363.4 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007661/0.1507, allocations: 0.7141 MB / 364.1 MB, free: 7.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003791/0.1511, allocations: 147.3 kB / 364.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.1514, allocations: 0.6846 MB / 364.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.223e-05/0.1515, allocations: 4 kB / 364.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.1515, allocations: 7.438 kB / 364.9 MB, free: 6.828 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1515, allocations: 0 / 364.9 MB, free: 6.828 MB / 302.1 MB Notification: Performance of Templates: time 0.003113/0.1546, allocations: 0.6788 MB / 365.6 MB, free: 6.16 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches