Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001819/0.001819, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002245/0.002245, allocations: 182.6 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 47.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2658, allocations: 52.17 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002922/0.2687, allocations: 1.447 MB / 424.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002208/0.2689, allocations: 47.78 kB / 424.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.461e-05/0.269, allocations: 0 / 424.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.147e-05/0.269, allocations: 3.938 kB / 424.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.148e-05/0.2691, allocations: 7.969 kB / 424.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.2693, allocations: 27.92 kB / 424.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.2694, allocations: 43.91 kB / 424.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.572e-05/0.2695, allocations: 7.984 kB / 424.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.497e-05/0.2696, allocations: 15.94 kB / 424.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.416e-05/0.2697, allocations: 19.92 kB / 424.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.2697, allocations: 4 kB / 424.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.2697, allocations: 4 kB / 424.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.48e-05/0.2697, allocations: 15.91 kB / 424.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.597e-05/0.2697, allocations: 15.94 kB / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.2699, allocations: 35.69 kB / 424.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2699, allocations: 4 kB / 424.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2699, allocations: 0 / 424.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.2699, allocations: 0 / 424.3 MB, free: 12.92 MB / 334.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.0004716/0.2703, allocations: 282.8 kB / 424.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2704, allocations: 12.03 kB / 424.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.726e-05/0.2704, allocations: 34.75 kB / 424.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.013e-05/0.2704, allocations: 4.938 kB / 424.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.2707, allocations: 130.4 kB / 424.8 MB, free: 12.4 MB / 334.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.0001121/0.2708, allocations: 38.25 kB / 424.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.2708, allocations: 8.375 kB / 424.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.2711, allocations: 123.6 kB / 424.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2711, allocations: 3.984 kB / 424.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.2711, allocations: 0 / 424.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2711, allocations: 0 / 424.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.9e-05/0.2712, allocations: 19.98 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001714/0.2714, allocations: 132.7 kB / 425.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.2716, allocations: 58.62 kB / 425.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.542e-05/0.2716, allocations: 24.84 kB / 425.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.749e-06/0.2716, allocations: 0 / 425.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.2716, allocations: 38.5 kB / 425.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.2716, allocations: 0 / 425.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002248/0.2719, allocations: 77.64 kB / 425.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.2719, allocations: 59.39 kB / 425.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.481e-05/0.272, allocations: 110 kB / 425.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.2721, allocations: 29.7 kB / 425.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/0.2721, allocations: 92.06 kB / 425.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.2721, allocations: 7.891 kB / 425.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/0.2722, allocations: 17.72 kB / 425.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.2723, allocations: 326.8 kB / 425.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.325e-05/0.2723, allocations: 8 kB / 425.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.119e-05/0.2724, allocations: 32.3 kB / 425.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.773e-05/0.2725, allocations: 52.22 kB / 426 MB, free: 11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2725, allocations: 0 / 426 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001106/0.2726, allocations: 73.56 kB / 426.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2726, allocations: 7.938 kB / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2726, allocations: 0 / 426.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.2726, allocations: 4 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.72e-05/0.2727, allocations: 4 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.2727, allocations: 4.156 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.819e-05/0.2727, allocations: 8 kB / 426.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.2727, allocations: 0 / 426.1 MB, free: 10.9 MB / 334.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.959e-05/0.2728, allocations: 129.7 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.2729, allocations: 61.58 kB / 426.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.2729, allocations: 12.06 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2729, allocations: 0 / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2729, allocations: 0 / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.2729, allocations: 0 / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.2731, allocations: 132.7 kB / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2731, allocations: 0 / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.951e-06/0.2731, allocations: 0 / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2731, allocations: 7.938 kB / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.2731, allocations: 4 kB / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2731, allocations: 0 / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2731, allocations: 0 / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001482/0.2732, allocations: 97.23 kB / 426.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.299e-05/0.2732, allocations: 11.89 kB / 426.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.2733, allocations: 4 kB / 426.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.798e-05/0.2733, allocations: 8 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-06/0.2733, allocations: 0 / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.2733, allocations: 4 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.984e-05/0.2734, allocations: 83.27 kB / 426.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2734, allocations: 0 / 426.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001957/0.2736, allocations: 12 kB / 426.7 MB, free: 10.26 MB / 334.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.0005213/0.2741, allocations: 0.6553 MB / 427.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.2742, allocations: 27.98 kB / 427.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2742, allocations: 3.938 kB / 427.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.91e-07/0.2742, allocations: 0 / 427.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007072/0.2749, allocations: 0.7259 MB / 428.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.2761, allocations: 1.226 MB / 429.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.2764, allocations: 0.6922 MB / 430 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.305e-05/0.2764, allocations: 0 / 430 MB, free: 6.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.321e-05/0.2765, allocations: 15.44 kB / 430 MB, free: 6.734 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2765, allocations: 0 / 430 MB, free: 6.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0288/0.3053, allocations: 1.824 MB / 431.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.31, allocations: 3.375 kB / 431.8 MB, free: 5.051 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.773523738000222]