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.0009387/0.0009388, allocations: 92.47 kB / 17.35 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 195.6 kB / 18.28 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.638/1.638, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002552/0.0002554, allocations: 8 kB / 307.7 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1439, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002174/0.1461, allocations: 1.16 MB / 360.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003745/0.1466, allocations: 39.84 kB / 360.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.1467, allocations: 4 kB / 360.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.1468, allocations: 0 / 360.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.05e-05/0.1469, allocations: 3.938 kB / 360.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003782/0.1473, allocations: 27.97 kB / 360.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.1474, allocations: 35.92 kB / 360.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.1476, allocations: 4 kB / 360.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.852e-05/0.1477, allocations: 19.92 kB / 360.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.549e-05/0.1477, allocations: 19.91 kB / 360.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.1478, allocations: 4 kB / 360.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.753e-05/0.1478, allocations: 4 kB / 360.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.991e-05/0.1478, allocations: 3.938 kB / 360.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.326e-05/0.1479, allocations: 41.62 kB / 360.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.1481, allocations: 39.86 kB / 360.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.1481, allocations: 0 / 360.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1481, allocations: 0 / 360.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.1481, allocations: 0 / 360.7 MB, free: 11.88 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.000635/0.1488, allocations: 335.7 kB / 361 MB, free: 11.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.1488, allocations: 8.031 kB / 361 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.228e-05/0.1489, allocations: 12.84 kB / 361 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.1492, allocations: 188.2 kB / 361.2 MB, free: 11.26 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.0001733/0.1493, allocations: 34.25 kB / 361.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.1494, allocations: 8.375 kB / 361.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003432/0.1497, allocations: 123.8 kB / 361.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1497, allocations: 3.938 kB / 361.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.1498, allocations: 4 kB / 361.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1498, allocations: 0 / 361.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.571e-05/0.1499, allocations: 19.98 kB / 361.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.15, allocations: 161.7 kB / 361.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.1502, allocations: 131.8 kB / 361.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.795e-05/0.1503, allocations: 32.78 kB / 361.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.1503, allocations: 4 kB / 361.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.1504, allocations: 34.56 kB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.312e-06/0.1504, allocations: 0 / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002264/0.1506, allocations: 73.53 kB / 361.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.1507, allocations: 59.41 kB / 361.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.728e-05/0.1508, allocations: 109.8 kB / 362 MB, free: 10.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.1508, allocations: 29.64 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.1509, allocations: 88.08 kB / 362.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.1509, allocations: 19.83 kB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.1509, allocations: 13.72 kB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1511, allocations: 314.8 kB / 362.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.277e-05/0.1511, allocations: 11.98 kB / 362.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.698e-05/0.1512, allocations: 36.3 kB / 362.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.655e-05/0.1513, allocations: 48.22 kB / 362.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1513, allocations: 0 / 362.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001196/0.1514, allocations: 77.56 kB / 362.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1514, allocations: 7.938 kB / 362.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1514, allocations: 4.156 kB / 362.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.1515, allocations: 4 kB / 362.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.112e-05/0.1515, allocations: 4 kB / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.455e-06/0.1515, allocations: 0 / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.864e-05/0.1516, allocations: 4.438 kB / 362.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1516, allocations: 0 / 362.6 MB, free: 9.629 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.0001179/0.1517, allocations: 125.7 kB / 362.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.1518, allocations: 69.53 kB / 362.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.1519, allocations: 7.969 kB / 362.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1519, allocations: 7.984 kB / 362.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1519, allocations: 0 / 362.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1519, allocations: 0 / 362.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001397/0.152, allocations: 157.7 kB / 363 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1521, allocations: 0 / 363 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.887e-06/0.1521, allocations: 4 kB / 363 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1521, allocations: 3.938 kB / 363 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.1521, allocations: 4 kB / 363 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1521, allocations: 0 / 363 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1521, allocations: 0 / 363 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.1523, allocations: 97.06 kB / 363.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.937e-05/0.1523, allocations: 89.06 kB / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.737e-05/0.1524, allocations: 3.938 kB / 363.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.875e-05/0.1524, allocations: 8 kB / 363.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-06/0.1524, allocations: 0 / 363.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.1525, allocations: 4 kB / 363.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.764e-05/0.1525, allocations: 87.27 kB / 363.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1525, allocations: 0 / 363.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001902/0.1527, allocations: 8 kB / 363.3 MB, free: 8.859 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.000183/0.1529, allocations: 103.2 kB / 363.4 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.1531, allocations: 35.92 kB / 363.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1531, allocations: 0 / 363.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.31e-07/0.1531, allocations: 0 / 363.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008312/0.1539, allocations: 0.7248 MB / 364.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004166/0.1544, allocations: 128.7 kB / 364.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.1547, allocations: 0.6887 MB / 365 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.296e-05/0.1547, allocations: 0 / 365 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.867e-05/0.1548, allocations: 11.44 kB / 365 MB, free: 7.086 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1548, allocations: 0 / 365 MB, free: 7.086 MB / 302.1 MB Notification: Performance of Templates: time 0.003633/0.1584, allocations: 0.647 MB / 365.6 MB, free: 6.453 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 -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/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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches