Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.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.0008934/0.0008934, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009243/0.0009243, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9287/0.9287, allocations: 173.3 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.16e-05/2.359e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.002066/0.00209, allocations: 1.414 MB / 319.8 MB, free: 4.957 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001942/0.002284, allocations: 39.78 kB / 319.9 MB, free: 4.918 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.045e-05/0.002345, allocations: 3.938 kB / 319.9 MB, free: 4.914 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.638e-05/0.002381, allocations: 3.938 kB / 319.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.28e-05/0.002414, allocations: 0 / 319.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.002671, allocations: 27.91 kB / 319.9 MB, free: 4.883 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.097e-05/0.002762, allocations: 27.92 kB / 319.9 MB, free: 4.855 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.00289, allocations: 15.97 kB / 320 MB, free: 4.84 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.391e-05/0.002944, allocations: 11.98 kB / 320 MB, free: 4.828 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.6e-05/0.00299, allocations: 7.938 kB / 320 MB, free: 4.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.00302, allocations: 4 kB / 320 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.083e-05/0.003031, allocations: 4 kB / 320 MB, free: 4.812 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.003051, allocations: 11.92 kB / 320 MB, free: 4.801 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.253e-05/0.003084, allocations: 11.98 kB / 320 MB, free: 4.789 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.00319, allocations: 27.91 kB / 320 MB, free: 4.762 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.003193, allocations: 0 / 320 MB, free: 4.762 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.003194, allocations: 0 / 320 MB, free: 4.762 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.0032, allocations: 0 / 320 MB, free: 4.762 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003783/0.003579, allocations: 273.5 kB / 320.3 MB, free: 4.465 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.003619, allocations: 8.922 kB / 320.3 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.243e-05/0.003652, allocations: 38.75 kB / 320.3 MB, free: 4.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.271e-05/0.003674, allocations: 8.938 kB / 320.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.003847, allocations: 113.7 kB / 320.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.003875, allocations: 12.36 kB / 320.5 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-06/0.003885, allocations: 384 / 320.5 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.004161, allocations: 115.8 kB / 320.6 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.004169, allocations: 192 / 320.6 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.004177, allocations: 384 / 320.6 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.004186, allocations: 12.11 kB / 320.6 MB, free: 4.117 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001429/0.004329, allocations: 23.98 kB / 320.6 MB, free: 4.094 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.004454, allocations: 120.8 kB / 320.7 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/0.004568, allocations: 46.56 kB / 320.8 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.095e-05/0.004619, allocations: 20.92 kB / 320.8 MB, free: 3.855 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.004632, allocations: 4 kB / 320.8 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.004655, allocations: 42.44 kB / 320.9 MB, free: 3.801 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.004656, allocations: 0 / 320.9 MB, free: 3.801 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001827/0.004839, allocations: 73.66 kB / 320.9 MB, free: 3.723 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.004885, allocations: 55.34 kB / 321 MB, free: 3.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.2e-05/0.004947, allocations: 109.8 kB / 321.1 MB, free: 3.539 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.087e-06/0.004956, allocations: 29.7 kB / 321.1 MB, free: 3.504 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.868e-05/0.004985, allocations: 80.14 kB / 321.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.078e-05/0.004995, allocations: 8 kB / 321.2 MB, free: 3.414 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.173e-05/0.005017, allocations: 9.719 kB / 321.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.005094, allocations: 318.8 kB / 321.5 MB, free: 3.078 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.00526, allocations: 7.984 kB / 321.5 MB, free: 3.07 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-06/0.005268, allocations: 4 kB / 321.5 MB, free: 3.066 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.468e-05/0.005293, allocations: 12.8 kB / 321.6 MB, free: 3.051 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.005294, allocations: 0 / 321.6 MB, free: 3.051 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.27e-05/0.005337, allocations: 41.77 kB / 321.6 MB, free: 3.004 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.005351, allocations: 4 kB / 321.6 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.005356, allocations: 0 / 321.6 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.005369, allocations: 0 / 321.6 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.984e-05/0.005419, allocations: 7.938 kB / 321.6 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.005424, allocations: 0 / 321.6 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.868e-06/0.005433, allocations: 3.984 kB / 321.6 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/0.005438, allocations: 192 / 321.6 MB, free: 2.988 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.781e-05/0.005495, allocations: 113.8 kB / 321.7 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.492e-05/0.00557, allocations: 69.55 kB / 321.8 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.037e-05/0.005591, allocations: 11.72 kB / 321.8 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.005594, allocations: 4.25 kB / 321.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.0056, allocations: 3.938 kB / 321.8 MB, free: 2.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.005604, allocations: 4 kB / 321.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.318e-05/0.005667, allocations: 124.8 kB / 321.9 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.005668, allocations: 3.938 kB / 321.9 MB, free: 2.598 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.484e-05/0.005683, allocations: 4 kB / 321.9 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.005685, allocations: 0 / 321.9 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.005693, allocations: 4 kB / 321.9 MB, free: 2.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.005694, allocations: 0 / 321.9 MB, free: 2.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.005696, allocations: 3.938 kB / 321.9 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.442e-05/0.00578, allocations: 89.05 kB / 322 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.447e-06/0.00579, allocations: 7.938 kB / 322 MB, free: 2.473 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.005804, allocations: 8 kB / 322 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.113e-05/0.005815, allocations: 0 / 322 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-06/0.005819, allocations: 3.938 kB / 322.1 MB, free: 2.461 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.005823, allocations: 4 kB / 322.1 MB, free: 2.457 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.406e-05/0.005847, allocations: 83.27 kB / 322.1 MB, free: 2.375 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005847, allocations: 0 / 322.1 MB, free: 2.375 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001163/0.005963, allocations: 8 kB / 322.1 MB, free: 2.367 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0003197/0.006283, allocations: 0.6321 MB / 322.8 MB, free: 1.703 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.742e-05/0.00636, allocations: 23.92 kB / 322.8 MB, free: 1.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.006362, allocations: 0 / 322.8 MB, free: 1.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.006363, allocations: 0 / 322.8 MB, free: 1.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001728/0.006535, allocations: 42.78 kB / 322.8 MB, free: 1.641 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006741/0.007209, allocations: 1.095 MB / 323.9 MB, free: 472 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.206e-05/0.007251, allocations: 63.34 kB / 324 MB, free: 388 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.032e-05/0.007272, allocations: 7.922 kB / 324 MB, free: 380 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.927e-05/0.007321, allocations: 20.59 kB / 324 MB, free: 360 kB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.007322, allocations: 0 / 324 MB, free: 360 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/0.02245, allocations: 1.906 MB / 325.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.797/6.82, allocations: 14.31 kB / 325.9 MB, free: 14.55 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_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_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.csv: Error: Error opening file: Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result: [Calling sys.exit(0), Time elapsed: 8.67560119368136]