Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.001892/0.001892, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.002149/0.002149, allocations: 184.7 kB / 23.71 MB, free: 4.434 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.551/1.551, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 55.91 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2638, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.003174/0.267, allocations: 1.583 MB / 424.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009711/0.268, allocations: 442.9 kB / 424.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.633e-05/0.268, allocations: 4 kB / 424.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.125e-05/0.2681, allocations: 7.922 kB / 424.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.2682, allocations: 15.86 kB / 424.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.2685, allocations: 43.83 kB / 424.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.2686, allocations: 35.92 kB / 424.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.2688, allocations: 11.98 kB / 424.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.243e-05/0.2688, allocations: 19.92 kB / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.184e-05/0.2689, allocations: 23.84 kB / 424.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.2689, allocations: 7.938 kB / 424.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.549e-05/0.2689, allocations: 4 kB / 424.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.18e-05/0.269, allocations: 15.94 kB / 424.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.095e-05/0.269, allocations: 19.86 kB / 424.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.2691, allocations: 53.44 kB / 424.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2691, allocations: 7.875 kB / 424.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2692, allocations: 0 / 424.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.336e-05/0.2692, allocations: 0 / 424.9 MB, free: 12.12 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.0004914/0.2697, allocations: 302 kB / 425.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.2697, allocations: 8.031 kB / 425.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.206e-05/0.2697, allocations: 38.75 kB / 425.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.2698, allocations: 8.891 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.27, allocations: 138.3 kB / 425.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.27, allocations: 4.375 kB / 425.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.27, allocations: 384 / 425.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.2703, allocations: 121.1 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.2703, allocations: 0 / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.2703, allocations: 4 kB / 425.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2704, allocations: 8 kB / 425.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.928e-05/0.2704, allocations: 23.92 kB / 425.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003273/0.2708, allocations: 228.8 kB / 425.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.271, allocations: 65.12 kB / 425.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.258e-05/0.271, allocations: 29.77 kB / 425.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.271, allocations: 0 / 425.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.2711, allocations: 34.56 kB / 425.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.2711, allocations: 0 / 425.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002726/0.2714, allocations: 89.55 kB / 425.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.434e-05/0.2714, allocations: 77.11 kB / 426 MB, free: 10.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.2716, allocations: 137.1 kB / 426.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.2716, allocations: 25.7 kB / 426.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.2717, allocations: 92.12 kB / 426.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.2717, allocations: 15.88 kB / 426.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.2717, allocations: 13.72 kB / 426.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.2719, allocations: 326.8 kB / 426.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.05e-05/0.2719, allocations: 4 kB / 426.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.894e-05/0.272, allocations: 43.48 kB / 426.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.251e-05/0.2721, allocations: 43.42 kB / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2721, allocations: 0 / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001503/0.2722, allocations: 77.5 kB / 426.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2722, allocations: 8.125 kB / 426.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2722, allocations: 7.984 kB / 426.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2723, allocations: 7.938 kB / 426.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.788e-05/0.2723, allocations: 8 kB / 426.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2723, allocations: 0 / 426.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.309e-05/0.2724, allocations: 7.984 kB / 426.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.2724, allocations: 0 / 426.8 MB, free: 9.918 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.0001013/0.2725, allocations: 125.7 kB / 426.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/0.2726, allocations: 53.58 kB / 427 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.464e-05/0.2726, allocations: 8.344 kB / 427 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2726, allocations: 8 kB / 427 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2726, allocations: 0 / 427 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2726, allocations: 0 / 427 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001742/0.2728, allocations: 140.7 kB / 427.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2728, allocations: 4 kB / 427.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.923e-05/0.2728, allocations: 4 kB / 427.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.2729, allocations: 7.984 kB / 427.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.2729, allocations: 0 / 427.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2729, allocations: 0 / 427.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2729, allocations: 0 / 427.2 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.2731, allocations: 180.2 kB / 427.3 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.91e-05/0.2731, allocations: 15.94 kB / 427.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.2731, allocations: 0 / 427.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.531e-05/0.2732, allocations: 4 kB / 427.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.2732, allocations: 384 / 427.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.2732, allocations: 0 / 427.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.836e-05/0.2733, allocations: 111.2 kB / 427.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2733, allocations: 0 / 427.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000221/0.2735, allocations: 11.94 kB / 427.5 MB, free: 9.172 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.0005512/0.2741, allocations: 0.7086 MB / 428.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001471/0.2742, allocations: 39.91 kB / 428.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2742, allocations: 0 / 428.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.387e-05/0.2743, allocations: 4 kB / 428.2 MB, free: 8.395 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.2746, allocations: 20.02 kB / 428.2 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.276, allocations: 1.355 MB / 429.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001081/0.2762, allocations: 87.17 kB / 429.7 MB, free: 6.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.448e-05/0.2762, allocations: 7.938 kB / 429.7 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.2762, allocations: 15.44 kB / 429.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2762, allocations: 0 / 429.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.306, allocations: 2.091 MB / 431.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.24, allocations: 6.172 kB / 431.8 MB, free: 4.832 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.008969289250672]