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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001254/0.001254, allocations: 207.5 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 230.4 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 71.89 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1127, allocations: 53.38 MB / 426.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003019/0.1157, allocations: 1.435 MB / 427.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002228/0.116, allocations: 43.89 kB / 427.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.661e-05/0.116, allocations: 7.938 kB / 427.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.739e-05/0.1161, allocations: 3.938 kB / 427.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.478e-05/0.1161, allocations: 7.922 kB / 427.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.1164, allocations: 23.97 kB / 427.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001116/0.1165, allocations: 39.86 kB / 427.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.1166, allocations: 11.98 kB / 427.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.114e-05/0.1166, allocations: 19.88 kB / 427.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.476e-05/0.1167, allocations: 23.91 kB / 428 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.1167, allocations: 4 kB / 428 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.139e-05/0.1167, allocations: 4 kB / 428 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.1167, allocations: 7.984 kB / 428 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.883e-05/0.1168, allocations: 19.88 kB / 428 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.1169, allocations: 47.8 kB / 428 MB, free: 2.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1169, allocations: 0 / 428 MB, free: 2.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1169, allocations: 0 / 428 MB, free: 2.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1169, allocations: 0 / 428 MB, free: 2.914 MB / 350.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.0005066/0.1174, allocations: 347.4 kB / 428.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1175, allocations: 16.03 kB / 428.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.012e-05/0.1175, allocations: 30.75 kB / 428.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.1175, allocations: 12.89 kB / 428.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.1178, allocations: 184.2 kB / 428.6 MB, free: 2.238 MB / 350.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.0001104/0.1179, allocations: 34.27 kB / 428.7 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.1179, allocations: 4.375 kB / 428.7 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003127/0.1182, allocations: 135.6 kB / 428.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.1182, allocations: 0 / 428.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.1182, allocations: 0 / 428.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1182, allocations: 0 / 428.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.636e-05/0.1183, allocations: 19.92 kB / 428.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001635/0.1185, allocations: 165.6 kB / 429 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.1187, allocations: 131.8 kB / 429.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.95e-05/0.1187, allocations: 28.84 kB / 429.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.418e-06/0.1188, allocations: 0 / 429.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.1188, allocations: 34.5 kB / 429.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.1188, allocations: 0 / 429.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002198/0.119, allocations: 77.62 kB / 429.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.1191, allocations: 55.41 kB / 429.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.718e-05/0.1192, allocations: 101.8 kB / 429.4 MB, free: 1.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.1192, allocations: 37.7 kB / 429.4 MB, free: 1.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.1192, allocations: 80.14 kB / 429.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.1193, allocations: 11.94 kB / 429.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-05/0.1193, allocations: 21.72 kB / 429.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1194, allocations: 314.8 kB / 429.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.306e-05/0.1195, allocations: 15.97 kB / 429.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.199e-05/0.1195, allocations: 40.23 kB / 429.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.275e-05/0.1196, allocations: 44.23 kB / 430 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1196, allocations: 4 kB / 430 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000114/0.1197, allocations: 81.5 kB / 430 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1197, allocations: 7.938 kB / 430 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1197, allocations: 4 kB / 430 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.1197, allocations: 0 / 430 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.663e-05/0.1198, allocations: 11.94 kB / 430.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1198, allocations: 4 kB / 430.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.25e-05/0.1198, allocations: 448 / 430.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.1198, allocations: 4 kB / 430.1 MB, free: 0.6016 MB / 350.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.985e-05/0.1199, allocations: 120.1 kB / 430.2 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.12, allocations: 69.56 kB / 430.3 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.518e-05/0.12, allocations: 7.969 kB / 430.3 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.12, allocations: 0 / 430.3 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/0.12, allocations: 3.984 kB / 430.3 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.12, allocations: 0 / 430.3 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.1202, allocations: 157.7 kB / 430.4 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1202, allocations: 4 kB / 430.4 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.582e-06/0.1202, allocations: 0 / 430.4 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1202, allocations: 3.938 kB / 430.4 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1202, allocations: 4 kB / 430.4 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1202, allocations: 4 kB / 430.4 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1202, allocations: 0 / 430.4 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001419/0.1203, allocations: 89.08 kB / 430.5 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.1204, allocations: 85.03 kB / 430.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.1204, allocations: 4 kB / 430.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.382e-05/0.1205, allocations: 7.938 kB / 430.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-06/0.1205, allocations: 144 / 430.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.1205, allocations: 7.984 kB / 430.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.087e-05/0.1205, allocations: 91.2 kB / 430.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1205, allocations: 0 / 430.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001933/0.1207, allocations: 12 kB / 430.7 MB, free: 15.84 MB / 366.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.0005473/0.1213, allocations: 0.6517 MB / 431.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.1214, allocations: 35.98 kB / 431.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/0.1214, allocations: 4 kB / 431.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.41e-07/0.1214, allocations: 0 / 431.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007077/0.1221, allocations: 0.7102 MB / 432.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.1233, allocations: 1.226 MB / 433.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.1236, allocations: 0.6807 MB / 434 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.46e-05/0.1236, allocations: 7.984 kB / 434 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.651e-05/0.1236, allocations: 15.44 kB / 434.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1236, allocations: 0 / 434.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.1467, allocations: 1.7 MB / 435.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.695, allocations: 3.5 kB / 435.8 MB, free: 10.75 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv","/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) [Timeout 660] "Error: Could not read variable assignClock1.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.446108533069491]