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.001481/0.001481, allocations: 111.9 kB / 17.68 MB, free: 5.332 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.001292/0.001293, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.481/1.481, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 50.09 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1308, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.004199/0.135, allocations: 1.416 MB / 352.9 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002643/0.1353, allocations: 43.84 kB / 353 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.279e-05/0.1354, allocations: 0 / 353 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.356e-05/0.1355, allocations: 7.875 kB / 353 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.009e-05/0.1356, allocations: 4 kB / 353 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.1359, allocations: 32.39 kB / 353 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002901/0.1362, allocations: 39.91 kB / 353 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.1364, allocations: 11.98 kB / 353 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.48e-05/0.1364, allocations: 19.92 kB / 353.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.612e-05/0.1365, allocations: 15.92 kB / 353.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.831e-05/0.1365, allocations: 4 kB / 353.1 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.736e-05/0.1366, allocations: 8 kB / 353.1 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.085e-05/0.1366, allocations: 7.984 kB / 353.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.336e-05/0.1367, allocations: 23.86 kB / 353.1 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.1368, allocations: 39.89 kB / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1368, allocations: 0 / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1368, allocations: 0 / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1369, allocations: 0 / 353.2 MB, free: 2.016 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.0009498/0.1378, allocations: 351.4 kB / 353.5 MB, free: 1.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.1379, allocations: 11.89 kB / 353.5 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.403e-05/0.1379, allocations: 8.844 kB / 353.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.1383, allocations: 196.2 kB / 353.7 MB, free: 1.371 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.0001283/0.1384, allocations: 34.25 kB / 353.8 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.1384, allocations: 4.375 kB / 353.8 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000407/0.1388, allocations: 123.8 kB / 353.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.1389, allocations: 3.938 kB / 353.9 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.1389, allocations: 8 kB / 353.9 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.1389, allocations: 0 / 353.9 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.487e-05/0.139, allocations: 19.98 kB / 353.9 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002308/0.1393, allocations: 161.6 kB / 354.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.1396, allocations: 135.8 kB / 354.2 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.1397, allocations: 24.84 kB / 354.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.1397, allocations: 7.938 kB / 354.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.1398, allocations: 34.56 kB / 354.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.462e-06/0.1398, allocations: 0 / 354.3 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002879/0.1401, allocations: 73.62 kB / 354.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/0.1402, allocations: 59.39 kB / 354.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.1403, allocations: 105.9 kB / 354.5 MB, free: 468 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.1403, allocations: 25.7 kB / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.1404, allocations: 92.06 kB / 354.6 MB, free: 340 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.1404, allocations: 11.91 kB / 354.6 MB, free: 328 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.528e-05/0.1405, allocations: 17.72 kB / 354.6 MB, free: 304 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002177/0.1407, allocations: 318.8 kB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.092e-05/0.1408, allocations: 15.88 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.354e-05/0.1408, allocations: 36.3 kB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.522e-05/0.1409, allocations: 48.22 kB / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1409, allocations: 0 / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001785/0.1411, allocations: 77.56 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1412, allocations: 7.938 kB / 355.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1412, allocations: 4.156 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.1412, allocations: 4 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.953e-05/0.1413, allocations: 4 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1413, allocations: 0 / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.439e-05/0.1413, allocations: 8.344 kB / 355.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.1414, allocations: 0 / 355.2 MB, free: 15.74 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.0001297/0.1415, allocations: 125.8 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.1417, allocations: 65.58 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.249e-05/0.1417, allocations: 11.95 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.1417, allocations: 4 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1418, allocations: 0 / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1418, allocations: 0 / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.142, allocations: 157.7 kB / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.142, allocations: 0 / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.127e-05/0.142, allocations: 4.094 kB / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.142, allocations: 11.92 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.142, allocations: 0 / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.142, allocations: 0 / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.142, allocations: 0 / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.1422, allocations: 96.95 kB / 355.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.782e-05/0.1423, allocations: 85.05 kB / 355.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.1424, allocations: 7.938 kB / 355.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.309e-05/0.1424, allocations: 4 kB / 355.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-06/0.1424, allocations: 0 / 355.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.1425, allocations: 4 kB / 355.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.075e-05/0.1425, allocations: 87.27 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1425, allocations: 0 / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003507/0.1429, allocations: 8 kB / 355.8 MB, free: 14.97 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.0001435/0.143, allocations: 103.2 kB / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001639/0.1432, allocations: 31.92 kB / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1432, allocations: 0 / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.1432, allocations: 0 / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.1443, allocations: 0.7332 MB / 356.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004573/0.1448, allocations: 133.3 kB / 356.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/0.1453, allocations: 0.6807 MB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.566e-05/0.1454, allocations: 4 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.95e-05/0.1454, allocations: 11.44 kB / 357.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1454, allocations: 0 / 357.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of Templates: time 0.00396/0.1494, allocations: 0.674 MB / 358.2 MB, free: 12.53 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 -s cvode -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/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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches