Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001886/0.001886, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.002223/0.002223, allocations: 188.3 kB / 23.72 MB, free: 4.684 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.557/1.557, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 55.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3686, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003394/0.372, allocations: 1.586 MB / 424.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004452/0.3724, allocations: 135.5 kB / 424.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.41e-05/0.3725, allocations: 4 kB / 424.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.484e-05/0.3726, allocations: 3.938 kB / 424.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.3727, allocations: 7.875 kB / 424.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.373, allocations: 39.89 kB / 424.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.3731, allocations: 39.86 kB / 424.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.3732, allocations: 8 kB / 424.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.637e-05/0.3733, allocations: 23.91 kB / 424.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.643e-05/0.3733, allocations: 15.92 kB / 424.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.3734, allocations: 0 / 424.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.364e-05/0.3734, allocations: 4 kB / 424.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.808e-05/0.3734, allocations: 7.938 kB / 424.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.47e-05/0.3735, allocations: 23.81 kB / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.3736, allocations: 51.17 kB / 424.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3736, allocations: 0 / 424.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3736, allocations: 0 / 424.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.3736, allocations: 4 kB / 424.6 MB, free: 12.64 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005083/0.3742, allocations: 299 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3742, allocations: 15.97 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/0.3742, allocations: 34.75 kB / 424.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.879e-05/0.3743, allocations: 8.891 kB / 424.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.3745, allocations: 126.5 kB / 425.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.3746, allocations: 4.359 kB / 425.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.3746, allocations: 8.375 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.3749, allocations: 117.5 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3749, allocations: 3.938 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.3749, allocations: 3.938 kB / 425.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3749, allocations: 0 / 425.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.845e-05/0.375, allocations: 27.92 kB / 425.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003233/0.3753, allocations: 232.8 kB / 425.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.3755, allocations: 61.08 kB / 425.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.021e-05/0.3756, allocations: 33.77 kB / 425.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.3756, allocations: 4 kB / 425.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.3756, allocations: 30.56 kB / 425.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.403e-06/0.3756, allocations: 0 / 425.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002727/0.3759, allocations: 77.59 kB / 425.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.376, allocations: 85.17 kB / 425.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.3761, allocations: 138.1 kB / 425.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3761, allocations: 25.7 kB / 425.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.693e-05/0.3762, allocations: 84.14 kB / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.3762, allocations: 0 / 426 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.3762, allocations: 21.7 kB / 426 MB, free: 11.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3764, allocations: 314.8 kB / 426.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.881e-05/0.3764, allocations: 11.98 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.382e-05/0.3765, allocations: 31.44 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.596e-05/0.3766, allocations: 43.36 kB / 426.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.3766, allocations: 7.938 kB / 426.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001813/0.3768, allocations: 73.56 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3768, allocations: 4 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3768, allocations: 0 / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3768, allocations: 4 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.228e-05/0.3769, allocations: 11.94 kB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.3769, allocations: 0 / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.823e-05/0.3769, allocations: 8.266 kB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-06/0.3769, allocations: 4.125 kB / 426.5 MB, free: 10.47 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001002/0.377, allocations: 117.8 kB / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.421e-05/0.3771, allocations: 53.62 kB / 426.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.3771, allocations: 12.34 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3771, allocations: 0 / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3771, allocations: 0 / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3771, allocations: 0 / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.3773, allocations: 148.7 kB / 426.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3773, allocations: 7.938 kB / 426.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.356e-05/0.3774, allocations: 19.92 kB / 426.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3774, allocations: 3.938 kB / 426.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-06/0.3774, allocations: 0 / 426.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3774, allocations: 4 kB / 426.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3774, allocations: 0 / 426.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.3776, allocations: 164.3 kB / 427 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.3776, allocations: 27.88 kB / 427 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.3776, allocations: 0 / 427 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.778e-05/0.3777, allocations: 0 / 427 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.3777, allocations: 4 kB / 427 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.3777, allocations: 0 / 427 MB, free: 9.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.536e-05/0.3778, allocations: 110.8 kB / 427.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3778, allocations: 0 / 427.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.3781, allocations: 7.938 kB / 427.2 MB, free: 9.723 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0005431/0.3786, allocations: 0.6976 MB / 427.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001758/0.3788, allocations: 31.92 kB / 427.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3788, allocations: 0 / 427.9 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.692e-05/0.3788, allocations: 12.23 kB / 427.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.3792, allocations: 19.97 kB / 427.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.3807, allocations: 1.314 MB / 429.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.3811, allocations: 0.6922 MB / 429.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.342e-05/0.3811, allocations: 0 / 429.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.645e-05/0.3812, allocations: 15.44 kB / 429.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3812, allocations: 0 / 429.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.4129, allocations: 1.593 MB / 431.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.06, allocations: 6.172 kB / 431.5 MB, free: 5.316 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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,assignClock.u,assignClock.y,sample1.y,step.y,step.height [Calling sys.exit(0), Time elapsed: 14.787156054000661]