Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002291/0.002291, allocations: 210.7 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.441/1.441, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2515, allocations: 53.38 MB / 431.1 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002877/0.2544, allocations: 1.448 MB / 432.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002044/0.2546, allocations: 43.84 kB / 432.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.217e-05/0.2547, allocations: 0 / 432.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.283e-05/0.2547, allocations: 7.922 kB / 432.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.69e-05/0.2548, allocations: 7.875 kB / 432.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002474/0.255, allocations: 27.97 kB / 432.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.2551, allocations: 35.92 kB / 432.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.2552, allocations: 19.77 kB / 432.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.811e-05/0.2553, allocations: 11.94 kB / 432.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.63e-05/0.2553, allocations: 23.92 kB / 432.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.2554, allocations: 4 kB / 432.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.149e-05/0.2554, allocations: 0 / 432.7 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.657e-05/0.2554, allocations: 11.98 kB / 432.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.712e-05/0.2554, allocations: 15.92 kB / 432.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.2555, allocations: 47.7 kB / 432.8 MB, free: 5.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.2556, allocations: 3.984 kB / 432.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.2556, allocations: 0 / 432.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.2556, allocations: 0 / 432.8 MB, free: 5.062 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.0005207/0.2561, allocations: 268.2 kB / 433 MB, free: 4.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2561, allocations: 8.031 kB / 433.1 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.2562, allocations: 42.75 kB / 433.1 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.63e-05/0.2562, allocations: 8.891 kB / 433.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.2564, allocations: 118.5 kB / 433.2 MB, free: 4.562 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.0001236/0.2566, allocations: 44.69 kB / 433.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.2566, allocations: 384 / 433.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.2569, allocations: 131.5 kB / 433.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.2569, allocations: 3.938 kB / 433.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.2569, allocations: 4 kB / 433.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2569, allocations: 0 / 433.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.301e-05/0.257, allocations: 16 kB / 433.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002405/0.2572, allocations: 132.7 kB / 433.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.2574, allocations: 58.62 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.49e-05/0.2575, allocations: 20.84 kB / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.2575, allocations: 0 / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.2575, allocations: 38.5 kB / 433.7 MB, free: 4.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 4.628e-06/0.2575, allocations: 3.984 kB / 433.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002073/0.2577, allocations: 77.81 kB / 433.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.2578, allocations: 63.39 kB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.2579, allocations: 105.9 kB / 433.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.2579, allocations: 25.7 kB / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.651e-05/0.258, allocations: 88.12 kB / 434 MB, free: 3.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.258, allocations: 7.953 kB / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.258, allocations: 17.72 kB / 434 MB, free: 3.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2582, allocations: 318.8 kB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.882e-05/0.2582, allocations: 8 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.188e-05/0.2582, allocations: 36.3 kB / 434.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.63e-05/0.2583, allocations: 52.22 kB / 434.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2583, allocations: 0 / 434.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001126/0.2584, allocations: 77.52 kB / 434.5 MB, free: 3.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.2584, allocations: 11.94 kB / 434.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.2584, allocations: 0 / 434.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.2585, allocations: 4 kB / 434.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.064e-05/0.2585, allocations: 8.156 kB / 434.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2585, allocations: 3.938 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.451e-05/0.2585, allocations: 7.938 kB / 434.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-06/0.2585, allocations: 0 / 434.6 MB, free: 3.055 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 8.945e-05/0.2586, allocations: 121.8 kB / 434.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.2587, allocations: 65.62 kB / 434.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.706e-05/0.2588, allocations: 8.062 kB / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.2588, allocations: 0 / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.2588, allocations: 0 / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2588, allocations: 0 / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.2589, allocations: 128.8 kB / 434.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2589, allocations: 0 / 434.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.115e-06/0.2589, allocations: 3.938 kB / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.2589, allocations: 7.938 kB / 434.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.2589, allocations: 4 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2589, allocations: 256 / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2589, allocations: 0 / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.259, allocations: 97.06 kB / 435 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.043e-05/0.259, allocations: 3.938 kB / 435 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.2591, allocations: 4 kB / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.243e-05/0.2591, allocations: 4 kB / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-06/0.2591, allocations: 4 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.2591, allocations: 4 kB / 435 MB, free: 2.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.015e-05/0.2592, allocations: 83.27 kB / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2592, allocations: 0 / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001863/0.2593, allocations: 12 kB / 435.1 MB, free: 2.434 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.0005235/0.2599, allocations: 0.6514 MB / 435.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.26, allocations: 27.92 kB / 435.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.26, allocations: 0 / 435.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.26, allocations: 4.375 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007001/0.2607, allocations: 0.718 MB / 436.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.2619, allocations: 1.229 MB / 437.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.155e-05/0.2619, allocations: 75.22 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.179e-05/0.2619, allocations: 3.984 kB / 437.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.849e-05/0.262, allocations: 19.38 kB / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.262, allocations: 64 / 437.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.2902, allocations: 2.267 MB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.21, allocations: 9.797 kB / 440.1 MB, free: 13.41 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.826777279842645]