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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001742/0.001742, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001993/0.001993, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.618/1.618, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 63.91 kB / 373.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1315, allocations: 53.32 MB / 427.1 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00293/0.1344, allocations: 1.439 MB / 428.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002595/0.1347, allocations: 43.84 kB / 428.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.358e-05/0.1347, allocations: 3.938 kB / 428.6 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.694e-05/0.1348, allocations: 7.875 kB / 428.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.113e-05/0.1349, allocations: 7.938 kB / 428.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.1352, allocations: 27.97 kB / 428.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.1353, allocations: 43.91 kB / 428.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.1354, allocations: 0 / 428.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.256e-05/0.1355, allocations: 23.91 kB / 428.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.536e-05/0.1355, allocations: 19.92 kB / 428.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.1355, allocations: 4 kB / 428.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.127e-05/0.1355, allocations: 4 kB / 428.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.329e-05/0.1356, allocations: 8 kB / 428.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.1e-05/0.1356, allocations: 23.84 kB / 428.8 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.1357, allocations: 43.77 kB / 428.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1357, allocations: 0 / 428.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1357, allocations: 0 / 428.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1357, allocations: 0 / 428.8 MB, free: 2.777 MB / 350.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.0005429/0.1363, allocations: 351.4 kB / 429.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1363, allocations: 8.031 kB / 429.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.235e-05/0.1364, allocations: 8.891 kB / 429.2 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.1366, allocations: 180.3 kB / 429.4 MB, free: 2.152 MB / 350.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.0001012/0.1367, allocations: 38.27 kB / 429.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.1367, allocations: 4.375 kB / 429.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003168/0.137, allocations: 135.8 kB / 429.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1371, allocations: 7.938 kB / 429.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.1371, allocations: 0 / 429.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.1371, allocations: 0 / 429.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.06e-05/0.1371, allocations: 15.98 kB / 429.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001847/0.1373, allocations: 165.6 kB / 429.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/0.1375, allocations: 135.7 kB / 429.9 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.295e-05/0.1376, allocations: 28.84 kB / 429.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.1376, allocations: 0 / 429.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1377, allocations: 30.56 kB / 429.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.203e-06/0.1377, allocations: 0 / 429.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002219/0.1379, allocations: 77.62 kB / 430 MB, free: 1.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.138, allocations: 63.34 kB / 430.1 MB, free: 1.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.1381, allocations: 102.2 kB / 430.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.1381, allocations: 33.7 kB / 430.2 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.61e-05/0.1381, allocations: 80.14 kB / 430.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.1382, allocations: 7.938 kB / 430.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.764e-05/0.1382, allocations: 17.72 kB / 430.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1383, allocations: 326.8 kB / 430.6 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.943e-05/0.1384, allocations: 7.984 kB / 430.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.705e-05/0.1384, allocations: 44.3 kB / 430.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.969e-05/0.1385, allocations: 52.22 kB / 430.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1385, allocations: 4 kB / 430.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001095/0.1386, allocations: 73.52 kB / 430.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1386, allocations: 7.938 kB / 430.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1386, allocations: 4 kB / 430.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1386, allocations: 0 / 430.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.525e-05/0.1387, allocations: 4 kB / 430.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.1387, allocations: 8.156 kB / 430.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.652e-05/0.1387, allocations: 4 kB / 430.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.1387, allocations: 4 kB / 430.8 MB, free: 0.5039 MB / 350.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.0001055/0.1388, allocations: 119.6 kB / 430.9 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.139, allocations: 61.62 kB / 431 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.225e-05/0.139, allocations: 11.95 kB / 431 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.139, allocations: 0 / 431 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.139, allocations: 0 / 431 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.139, allocations: 0 / 431 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.1391, allocations: 161.7 kB / 431.2 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1391, allocations: 4 kB / 431.2 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-06/0.1392, allocations: 0 / 431.2 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.1392, allocations: 3.938 kB / 431.2 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1392, allocations: 0 / 431.2 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1392, allocations: 0 / 431.2 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1392, allocations: 3.938 kB / 431.2 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.1393, allocations: 93.08 kB / 431.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.537e-05/0.1394, allocations: 85.09 kB / 431.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.1394, allocations: 11.94 kB / 431.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.166e-05/0.1395, allocations: 0 / 431.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.555e-06/0.1395, allocations: 0 / 431.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.1395, allocations: 8.141 kB / 431.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.852e-05/0.1395, allocations: 83.27 kB / 431.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1395, allocations: 0 / 431.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001942/0.1397, allocations: 15.94 kB / 431.5 MB, free: 15.75 MB / 366.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.0001307/0.1398, allocations: 99.23 kB / 431.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.14, allocations: 39.92 kB / 431.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.14, allocations: 0 / 431.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.82e-07/0.14, allocations: 3.938 kB / 431.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007408/0.1407, allocations: 0.718 MB / 432.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/0.141, allocations: 137.8 kB / 432.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.1414, allocations: 0.6885 MB / 433.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.008e-05/0.1414, allocations: 0 / 433.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.535e-05/0.1414, allocations: 11.44 kB / 433.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1414, allocations: 0 / 433.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of Templates: time 0.003252/0.1447, allocations: 0.6717 MB / 433.8 MB, free: 13.3 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9775543147698045]