Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.0008657/0.0008657, allocations: 79.69 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.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.0009617/0.0009617, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9058/0.9058, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.691e-05, allocations: 12.89 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002013/0.002039, allocations: 1.528 MB / 326.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003394/0.002379, allocations: 147.4 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.786e-05/0.002467, allocations: 7.938 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.538e-05/0.002512, allocations: 7.938 kB / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.002641, allocations: 0 / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.002864, allocations: 39.89 kB / 326.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.676e-05/0.00296, allocations: 39.8 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.772e-05/0.003058, allocations: 7.938 kB / 326.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.733e-05/0.003105, allocations: 23.97 kB / 326.4 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.93e-05/0.003145, allocations: 11.92 kB / 326.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.003172, allocations: 4 kB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.075e-06/0.00318, allocations: 0 / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.00323, allocations: 15.92 kB / 326.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.629e-05/0.003257, allocations: 8 kB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.003365, allocations: 47.88 kB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.003367, allocations: 0 / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.003368, allocations: 0 / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.003372, allocations: 0 / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003803/0.003752, allocations: 296.9 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.003794, allocations: 12.02 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.107e-05/0.003825, allocations: 38.75 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.215e-05/0.003847, allocations: 4.891 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.004041, allocations: 137.5 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.004053, allocations: 12.38 kB / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-06/0.004061, allocations: 384 / 326.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.004305, allocations: 117.6 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.004312, allocations: 192 / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.00432, allocations: 384 / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.004327, allocations: 4.125 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.652e-05/0.004374, allocations: 23.92 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002733/0.004647, allocations: 228.8 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.004805, allocations: 61.14 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.081e-05/0.004845, allocations: 29.77 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.004862, allocations: 0 / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.004881, allocations: 38.48 kB / 327.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.61e-07/0.004882, allocations: 4 kB / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001727/0.005055, allocations: 77.67 kB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.005102, allocations: 89.11 kB / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.941e-05/0.005191, allocations: 131.7 kB / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.005203, allocations: 25.7 kB / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.005246, allocations: 88.14 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.417e-06/0.005255, allocations: 3.953 kB / 327.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.005282, allocations: 21.64 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.967e-05/0.005362, allocations: 314.8 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.653e-05/0.005389, allocations: 4 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.393e-05/0.005403, allocations: 7.984 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.036e-05/0.005443, allocations: 24.84 kB / 328.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.005445, allocations: 4 kB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.324e-05/0.005508, allocations: 45.62 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.005522, allocations: 8 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.005528, allocations: 0 / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.00554, allocations: 0 / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.783e-05/0.005578, allocations: 4 kB / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.005583, allocations: 0 / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.536e-05/0.005598, allocations: 8.016 kB / 328.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-06/0.005603, allocations: 0 / 328.3 MB, free: 11.98 MB / 298.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: 1 (step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.0006453/0.006248, allocations: 117.8 kB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.261e-05/0.0063, allocations: 57.52 kB / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/0.006336, allocations: 8.344 kB / 328.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.006339, allocations: 4 kB / 328.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.006345, allocations: 0 / 328.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.006349, allocations: 0 / 328.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000121/0.00647, allocations: 136.7 kB / 328.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.006472, allocations: 0 / 328.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.006506, allocations: 12 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.006511, allocations: 7.938 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.006519, allocations: 4 kB / 328.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.00652, allocations: 0 / 328.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.006521, allocations: 0 / 328.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001145/0.006636, allocations: 168.3 kB / 328.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.342e-05/0.006669, allocations: 19.88 kB / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.006683, allocations: 4 kB / 328.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.927e-05/0.006713, allocations: 3.938 kB / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.006745, allocations: 4 kB / 328.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.006748, allocations: 7.984 kB / 328.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.76e-05/0.006796, allocations: 105.9 kB / 328.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006796, allocations: 0 / 328.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001405/0.006937, allocations: 4 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0002784/0.007215, allocations: 0.7053 MB / 329.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.574e-05/0.007311, allocations: 19.98 kB / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.007312, allocations: 0 / 329.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.833e-05/0.00733, allocations: 12.05 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.007589, allocations: 23.95 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007983/0.008387, allocations: 1.256 MB / 330.9 MB, free: 9.121 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.556e-05/0.008443, allocations: 71.58 kB / 331 MB, free: 9.031 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.751e-05/0.00846, allocations: 4 kB / 331 MB, free: 9.027 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.008502, allocations: 16.59 kB / 331 MB, free: 9.012 MB / 298.7 MB Notification: Performance of SimCode: time 7.02e-07/0.008503, allocations: 4.094 kB / 331 MB, free: 9.008 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.02647, allocations: 2.113 MB / 333.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.852/6.878, allocations: 6.125 kB / 333.2 MB, free: 7.012 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,step.startTime,assignClock.u,assignClock.y,sample1.y,step.y [Calling sys.exit(0), Time elapsed: 8.738249015063047]