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.001712/0.001712, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001901/0.001901, allocations: 194.6 kB / 23.71 MB, free: 4.406 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.418/1.418, allocations: 225.7 MB / 252.5 MB, free: 12.79 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.001731/0.001731, allocations: 43.92 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2694, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003149/0.2726, allocations: 1.56 MB / 424.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004181/0.273, allocations: 139.5 kB / 424.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.45e-05/0.2731, allocations: 0 / 424.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.777e-05/0.2731, allocations: 7.938 kB / 424.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.2732, allocations: 3.938 kB / 424.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.2735, allocations: 47.83 kB / 424.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.215e-05/0.2736, allocations: 27.92 kB / 424.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.957e-05/0.2737, allocations: 8 kB / 424.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.181e-05/0.2737, allocations: 15.92 kB / 424.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.961e-05/0.2737, allocations: 15.88 kB / 424.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.2738, allocations: 7.984 kB / 424.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.371e-05/0.2738, allocations: 4 kB / 424.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.962e-05/0.2738, allocations: 11.98 kB / 424.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.2739, allocations: 15.88 kB / 424.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.274, allocations: 53.38 kB / 424.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.274, allocations: 0 / 424.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.274, allocations: 0 / 424.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.274, allocations: 0 / 424.5 MB, free: 12.48 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.0004498/0.2745, allocations: 305.9 kB / 424.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2745, allocations: 16.03 kB / 424.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.024e-05/0.2745, allocations: 38.69 kB / 424.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.2746, allocations: 8.891 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.2748, allocations: 122.5 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.2749, allocations: 4.375 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.2749, allocations: 4.375 kB / 425 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.2751, allocations: 113.6 kB / 425.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.2752, allocations: 3.938 kB / 425.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-06/0.2752, allocations: 0 / 425.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.2752, allocations: 7.984 kB / 425.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.975e-05/0.2753, allocations: 23.91 kB / 425.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000364/0.2756, allocations: 236.8 kB / 425.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.2758, allocations: 61.14 kB / 425.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.434e-05/0.2759, allocations: 21.72 kB / 425.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.2759, allocations: 11.92 kB / 425.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.2759, allocations: 38.56 kB / 425.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.2759, allocations: 0 / 425.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002785/0.2762, allocations: 77.56 kB / 425.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.2763, allocations: 77.11 kB / 425.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.2764, allocations: 138 kB / 425.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.2764, allocations: 25.7 kB / 425.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.857e-05/0.2765, allocations: 88.12 kB / 425.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.134e-05/0.2765, allocations: 0 / 425.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.674e-05/0.2765, allocations: 29.8 kB / 425.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2767, allocations: 310.8 kB / 426.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.237e-05/0.2767, allocations: 11.98 kB / 426.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.896e-05/0.2768, allocations: 31.42 kB / 426.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.93e-05/0.2769, allocations: 47.36 kB / 426.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.2769, allocations: 3.938 kB / 426.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001361/0.277, allocations: 65.62 kB / 426.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.277, allocations: 8 kB / 426.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.277, allocations: 0 / 426.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.277, allocations: 0 / 426.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.569e-05/0.2771, allocations: 11.98 kB / 426.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.2771, allocations: 3.938 kB / 426.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.37e-05/0.2771, allocations: 7.938 kB / 426.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.2771, allocations: 8 kB / 426.4 MB, free: 10.3 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 9.22e-05/0.2772, allocations: 125.9 kB / 426.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.224e-05/0.2773, allocations: 45.66 kB / 426.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/0.2773, allocations: 12.33 kB / 426.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2774, allocations: 4 kB / 426.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.2774, allocations: 0 / 426.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2774, allocations: 0 / 426.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.2775, allocations: 136.7 kB / 426.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2775, allocations: 0 / 426.7 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.384e-05/0.2776, allocations: 11.92 kB / 426.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2776, allocations: 4 kB / 426.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.2776, allocations: 4 kB / 426.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2776, allocations: 0 / 426.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2776, allocations: 0 / 426.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.2778, allocations: 176.5 kB / 426.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.157e-05/0.2778, allocations: 15.89 kB / 426.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.2778, allocations: 0 / 426.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.06e-05/0.2779, allocations: 8.031 kB / 426.9 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.239e-05/0.2779, allocations: 7.984 kB / 427 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.2779, allocations: 0 / 427 MB, free: 9.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.316e-05/0.278, allocations: 106.6 kB / 427.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.278, allocations: 4 kB / 427.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002227/0.2782, allocations: 4 kB / 427.1 MB, free: 9.562 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.0005484/0.2788, allocations: 0.7014 MB / 427.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001246/0.2789, allocations: 31.92 kB / 427.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2789, allocations: 0 / 427.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.069e-05/0.2789, allocations: 4 kB / 427.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.2793, allocations: 24.33 kB / 427.8 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.2807, allocations: 1.322 MB / 429.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.258e-05/0.2808, allocations: 75.19 kB / 429.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.523e-05/0.2808, allocations: 0 / 429.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.2808, allocations: 15.44 kB / 429.2 MB, free: 7.238 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2808, allocations: 4 kB / 429.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02991/0.3107, allocations: 2.011 MB / 431.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.33, allocations: 4 kB / 431.3 MB, free: 5.355 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.89830359723419]