Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001535/0.001535, 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.001729/0.001729, 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 4.1.0-beta.om/package.mo): time 1.498/1.498, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 68.64 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1055, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002822/0.1084, allocations: 1.434 MB / 359.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001807/0.1086, allocations: 35.84 kB / 359.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.049e-05/0.1087, allocations: 0 / 359.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.162e-05/0.1087, allocations: 7.922 kB / 359.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.938e-05/0.1088, allocations: 3.938 kB / 359.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.109, allocations: 31.97 kB / 359.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.767e-05/0.1091, allocations: 39.92 kB / 360 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.1092, allocations: 11.97 kB / 360 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.975e-05/0.1092, allocations: 15.94 kB / 360 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.287e-05/0.1093, allocations: 23.92 kB / 360 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.1093, allocations: 4 kB / 360 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.1093, allocations: 4 kB / 360 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.482e-05/0.1094, allocations: 11.92 kB / 360.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.579e-05/0.1094, allocations: 15.92 kB / 360.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.192e-05/0.1095, allocations: 35.88 kB / 360.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.1095, allocations: 4 kB / 360.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1095, allocations: 0 / 360.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1095, allocations: 0 / 360.1 MB, free: 12.25 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.0005032/0.11, allocations: 347.7 kB / 360.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.1101, allocations: 12.03 kB / 360.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.015e-05/0.1101, allocations: 8.844 kB / 360.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.1103, allocations: 188.1 kB / 360.7 MB, free: 11.62 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.0001415/0.1105, allocations: 38.25 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.1105, allocations: 4.375 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.1108, allocations: 127.8 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1109, allocations: 11.94 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.1109, allocations: 0 / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.1109, allocations: 0 / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.089e-05/0.1109, allocations: 12 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.1111, allocations: 161.7 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002195/0.1113, allocations: 139.8 kB / 361.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.029e-05/0.1114, allocations: 28.84 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.1114, allocations: 7.938 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.1115, allocations: 34.55 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.1115, allocations: 0 / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002135/0.1117, allocations: 73.62 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.937e-05/0.1118, allocations: 63.34 kB / 361.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.71e-05/0.1119, allocations: 109.8 kB / 361.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.1119, allocations: 25.7 kB / 361.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.776e-05/0.112, allocations: 88.14 kB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.353e-05/0.112, allocations: 7.844 kB / 361.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.112, allocations: 25.7 kB / 361.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1122, allocations: 314.8 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.785e-05/0.1122, allocations: 7.938 kB / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.509e-05/0.1122, allocations: 40.72 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.349e-05/0.1123, allocations: 52.23 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1123, allocations: 0 / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001175/0.1125, allocations: 77.47 kB / 362.1 MB, free: 10 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.1125, allocations: 12.09 kB / 362.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.1125, allocations: 4 kB / 362.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1125, allocations: 0 / 362.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.209e-05/0.1126, allocations: 4 kB / 362.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.1126, allocations: 7.984 kB / 362.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.254e-05/0.1126, allocations: 0 / 362.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.1126, allocations: 4 kB / 362.1 MB, free: 9.969 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.0001011/0.1127, allocations: 117.8 kB / 362.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.1128, allocations: 65.56 kB / 362.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.454e-05/0.1129, allocations: 11.97 kB / 362.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1129, allocations: 0 / 362.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1129, allocations: 0 / 362.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.1129, allocations: 0 / 362.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.113, allocations: 161.7 kB / 362.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.113, allocations: 0 / 362.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.102e-06/0.113, allocations: 0 / 362.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.1131, allocations: 3.938 kB / 362.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.1131, allocations: 3.984 kB / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1131, allocations: 0 / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1131, allocations: 4 kB / 362.5 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.1132, allocations: 92.97 kB / 362.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.912e-05/0.1133, allocations: 77.11 kB / 362.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.1133, allocations: 15.88 kB / 362.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.574e-05/0.1134, allocations: 3.984 kB / 362.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-06/0.1134, allocations: 0 / 362.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.1134, allocations: 8 kB / 362.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.898e-05/0.1134, allocations: 83.28 kB / 362.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1135, allocations: 4 kB / 362.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.1137, allocations: 12 kB / 362.8 MB, free: 9.211 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.0001099/0.1138, allocations: 103.2 kB / 362.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.1139, allocations: 31.94 kB / 362.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.114, allocations: 0 / 362.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.114, allocations: 4 kB / 362.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007461/0.1147, allocations: 0.7285 MB / 363.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003052/0.115, allocations: 160.6 kB / 363.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.1154, allocations: 0.6846 MB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.05e-05/0.1154, allocations: 7.438 kB / 364.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1154, allocations: 0 / 364.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of Templates: time 0.002342/0.1177, allocations: 0.7692 MB / 365.2 MB, free: 6.645 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches