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.001344/0.001345, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001417/0.001417, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 247.5 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 64.61 kB / 307.6 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1122, allocations: 50.54 MB / 358.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00305/0.1153, allocations: 1.424 MB / 359.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002144/0.1156, allocations: 39.91 kB / 359.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.955e-05/0.1157, allocations: 3.938 kB / 359.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.1157, allocations: 3.938 kB / 359.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.582e-05/0.1158, allocations: 3.938 kB / 359.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.116, allocations: 27.97 kB / 359.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.1162, allocations: 47.89 kB / 359.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.1163, allocations: 8 kB / 359.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.637e-05/0.1163, allocations: 15.92 kB / 359.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.595e-05/0.1164, allocations: 19.92 kB / 359.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.1164, allocations: 4 kB / 359.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.643e-05/0.1164, allocations: 8 kB / 359.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.762e-05/0.1165, allocations: 15.86 kB / 359.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.035e-05/0.1165, allocations: 19.92 kB / 359.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.912e-05/0.1166, allocations: 31.89 kB / 359.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1166, allocations: 4 kB / 359.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1166, allocations: 0 / 359.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.1167, allocations: 0 / 359.9 MB, free: 12.36 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.0005836/0.1172, allocations: 347.7 kB / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.1173, allocations: 8.031 kB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.1174, allocations: 12.84 kB / 360.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/0.1176, allocations: 184.2 kB / 360.4 MB, free: 11.73 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.0001537/0.1177, allocations: 38.25 kB / 360.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.1178, allocations: 384 / 360.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003195/0.1181, allocations: 131.8 kB / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1181, allocations: 3.938 kB / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1181, allocations: 4 kB / 360.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1181, allocations: 4 kB / 360.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.31e-05/0.1182, allocations: 15.98 kB / 360.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001772/0.1184, allocations: 161.7 kB / 360.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.1186, allocations: 147.7 kB / 360.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.937e-05/0.1187, allocations: 24.84 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.1187, allocations: 0 / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.1187, allocations: 34.56 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 9.51e-07/0.1188, allocations: 0 / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002388/0.119, allocations: 81.56 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/0.1191, allocations: 59.41 kB / 361.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.1192, allocations: 109.8 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1192, allocations: 25.7 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.742e-05/0.1193, allocations: 88.08 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.1193, allocations: 7.906 kB / 361.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.77e-05/0.1193, allocations: 25.7 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1195, allocations: 310.8 kB / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.869e-05/0.1195, allocations: 11.94 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.719e-05/0.1196, allocations: 40.28 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.963e-05/0.1197, allocations: 52.23 kB / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1197, allocations: 0 / 361.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001161/0.1198, allocations: 73.47 kB / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1198, allocations: 11.94 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1198, allocations: 4.156 kB / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.1198, allocations: 0 / 361.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-05/0.1199, allocations: 7.984 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.1199, allocations: 4 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.514e-05/0.1199, allocations: 0 / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.1199, allocations: 7.938 kB / 361.9 MB, free: 10.08 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 9.896e-05/0.12, allocations: 113.8 kB / 362 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.1202, allocations: 65.62 kB / 362 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.455e-05/0.1202, allocations: 3.969 kB / 362 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1202, allocations: 4 kB / 362 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1202, allocations: 448 / 362 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1202, allocations: 4 kB / 362 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.1204, allocations: 161.7 kB / 362.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1204, allocations: 4 kB / 362.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.526e-06/0.1204, allocations: 3.984 kB / 362.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.1204, allocations: 3.938 kB / 362.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.1204, allocations: 0 / 362.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1204, allocations: 7.938 kB / 362.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1204, allocations: 0 / 362.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000145/0.1206, allocations: 90.72 kB / 362.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.611e-05/0.1207, allocations: 81.05 kB / 362.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.1207, allocations: 11.94 kB / 362.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.525e-05/0.1207, allocations: 3.984 kB / 362.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-06/0.1207, allocations: 4 kB / 362.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.1208, allocations: 0 / 362.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.369e-05/0.1208, allocations: 83.28 kB / 362.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1208, allocations: 0 / 362.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001959/0.121, allocations: 12 kB / 362.5 MB, free: 9.332 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.0001334/0.1212, allocations: 103.2 kB / 362.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000157/0.1213, allocations: 35.92 kB / 362.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1213, allocations: 0 / 362.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.1214, allocations: 0 / 362.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007598/0.1221, allocations: 0.7261 MB / 363.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003481/0.1225, allocations: 163.2 kB / 363.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1229, allocations: 0.6885 MB / 364.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.1229, allocations: 7.438 kB / 364.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1229, allocations: 0 / 364.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of Templates: time 0.00244/0.1253, allocations: 0.7694 MB / 365 MB, free: 6.758 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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