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.001067/0.001068, allocations: 99.64 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001524/0.001524, allocations: 199.8 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.648/1.648, allocations: 227.7 MB / 246.4 MB, free: 9.789 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002437, allocations: 4 kB / 307.1 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.117, allocations: 51.53 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001632/0.1187, allocations: 1.145 MB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001837/0.1189, allocations: 43.89 kB / 359.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.449e-05/0.119, allocations: 4 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.566e-05/0.119, allocations: 7.875 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.71e-05/0.1191, allocations: 4 kB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.1193, allocations: 27.91 kB / 359.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.476e-05/0.1194, allocations: 31.92 kB / 359.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.312e-05/0.1195, allocations: 15.98 kB / 359.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.654e-05/0.1195, allocations: 11.92 kB / 359.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.295e-05/0.1196, allocations: 15.92 kB / 359.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.1196, allocations: 4 kB / 359.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.051e-05/0.1196, allocations: 4 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.968e-05/0.1197, allocations: 11.98 kB / 360 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.719e-05/0.1197, allocations: 25.7 kB / 360 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.802e-05/0.1198, allocations: 31.88 kB / 360 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1198, allocations: 0 / 360 MB, free: 12.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1198, allocations: 0 / 360 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1198, allocations: 0 / 360 MB, free: 12.02 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.000378/0.1202, allocations: 343.5 kB / 360.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1202, allocations: 8.031 kB / 360.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.459e-05/0.1203, allocations: 7.906 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.1204, allocations: 179 kB / 360.5 MB, free: 11.41 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.0001222/0.1206, allocations: 33.69 kB / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.1206, allocations: 4 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.1209, allocations: 127.2 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.1209, allocations: 0 / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.1209, allocations: 4 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.1209, allocations: 4 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.763e-05/0.121, allocations: 19.98 kB / 360.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001253/0.1211, allocations: 157.7 kB / 360.9 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.1213, allocations: 147.7 kB / 361 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.096e-05/0.1214, allocations: 20.84 kB / 361 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-06/0.1214, allocations: 7.938 kB / 361.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.1214, allocations: 34.56 kB / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.203e-06/0.1214, allocations: 0 / 361.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001962/0.1216, allocations: 77.55 kB / 361.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.1217, allocations: 55.41 kB / 361.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.948e-05/0.1218, allocations: 113.8 kB / 361.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.1218, allocations: 25.7 kB / 361.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.443e-05/0.1218, allocations: 84.14 kB / 361.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.188e-05/0.1218, allocations: 4 kB / 361.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/0.1219, allocations: 4 kB / 361.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.467e-05/0.122, allocations: 318.8 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.634e-05/0.122, allocations: 4 kB / 361.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.566e-05/0.122, allocations: 44.22 kB / 361.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.057e-05/0.1221, allocations: 16 kB / 361.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1221, allocations: 0 / 361.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.944e-05/0.1222, allocations: 73.47 kB / 361.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1222, allocations: 8 kB / 361.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.1222, allocations: 0 / 361.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1222, allocations: 3.953 kB / 361.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.647e-05/0.1223, allocations: 8.438 kB / 361.9 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.1223, allocations: 0 / 361.9 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.725e-05/0.1223, allocations: 8.156 kB / 361.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.1223, allocations: 11.94 kB / 361.9 MB, free: 9.84 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 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.246e-05/0.1224, allocations: 120.2 kB / 362 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.416e-05/0.1225, allocations: 61.59 kB / 362.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.284e-05/0.1225, allocations: 7.969 kB / 362.1 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1226, allocations: 3.953 kB / 362.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1226, allocations: 4 kB / 362.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1226, allocations: 0 / 362.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.1227, allocations: 157.7 kB / 362.3 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1227, allocations: 7.938 kB / 362.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.723e-06/0.1227, allocations: 0 / 362.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1227, allocations: 0 / 362.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1227, allocations: 0 / 362.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1227, allocations: 7.938 kB / 362.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1227, allocations: 3.953 kB / 362.3 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.1229, allocations: 89.11 kB / 362.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.1229, allocations: 81.02 kB / 362.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.1229, allocations: 4 kB / 362.5 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.256e-05/0.123, allocations: 4 kB / 362.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-06/0.123, allocations: 4 kB / 362.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.123, allocations: 7.984 kB / 362.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.22e-05/0.1231, allocations: 83.23 kB / 362.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1231, allocations: 0 / 362.6 MB, free: 9.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000201/0.1233, allocations: 12 kB / 362.6 MB, free: 9.09 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.382e-05/0.1234, allocations: 95.44 kB / 362.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.1235, allocations: 39.92 kB / 362.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1235, allocations: 0 / 362.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.1235, allocations: 0 / 362.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006363/0.1242, allocations: 0.7336 MB / 363.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002821/0.1245, allocations: 140.4 kB / 363.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.1247, allocations: 0.6848 MB / 364.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.338e-05/0.1247, allocations: 432 / 364.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.36e-05/0.1247, allocations: 11.44 kB / 364.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of SimCode: time 1.553e-06/0.1247, allocations: 0 / 364.3 MB, free: 7.301 MB / 302.1 MB Notification: Performance of Templates: time 0.002633/0.1274, allocations: 0.6083 MB / 364.9 MB, free: 6.699 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