Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.00174/0.00174, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.002106/0.002106, allocations: 215.1 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.389/1.389, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 43.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2444, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.0028/0.2472, allocations: 1.565 MB / 432.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003917/0.2476, allocations: 131.5 kB / 432.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.551e-05/0.2477, allocations: 7.938 kB / 432.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.617e-05/0.2477, allocations: 7.922 kB / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.2478, allocations: 11.92 kB / 432.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.2481, allocations: 31.92 kB / 432.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.815e-05/0.2482, allocations: 35.89 kB / 432.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.558e-05/0.2483, allocations: 15.94 kB / 432.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.432e-05/0.2483, allocations: 15.92 kB / 432.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.926e-05/0.2484, allocations: 11.94 kB / 432.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.2484, allocations: 4 kB / 432.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.038e-05/0.2484, allocations: 4 kB / 432.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.89e-05/0.2484, allocations: 15.92 kB / 432.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.2485, allocations: 15.88 kB / 433 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.2486, allocations: 53.38 kB / 433 MB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2486, allocations: 0 / 433 MB, free: 4.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2486, allocations: 0 / 433 MB, free: 4.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2486, allocations: 0 / 433 MB, free: 4.723 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.0004366/0.249, allocations: 298.1 kB / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2491, allocations: 16.02 kB / 433.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.2491, allocations: 34.75 kB / 433.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.555e-05/0.2491, allocations: 8.891 kB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.2494, allocations: 132.9 kB / 433.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.2494, allocations: 8.312 kB / 433.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.2494, allocations: 4.375 kB / 433.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.2497, allocations: 117.6 kB / 433.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2497, allocations: 3.938 kB / 433.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.2497, allocations: 0 / 433.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.2497, allocations: 4 kB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.295e-05/0.2498, allocations: 15.98 kB / 433.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002882/0.2501, allocations: 232.8 kB / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.2502, allocations: 61.14 kB / 433.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.623e-05/0.2503, allocations: 33.7 kB / 434 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.2503, allocations: 0 / 434 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.2503, allocations: 38.55 kB / 434 MB, free: 3.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.51e-07/0.2503, allocations: 3.938 kB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000237/0.2506, allocations: 77.75 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.2506, allocations: 81.11 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.2507, allocations: 130.1 kB / 434.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.2508, allocations: 29.7 kB / 434.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.788e-05/0.2508, allocations: 80.27 kB / 434.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.652e-05/0.2508, allocations: 19.94 kB / 434.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.2508, allocations: 13.72 kB / 434.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.251, allocations: 314.8 kB / 434.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.073e-05/0.251, allocations: 7.984 kB / 434.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.225e-05/0.2511, allocations: 35.42 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.355e-05/0.2512, allocations: 47.36 kB / 434.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2512, allocations: 7.938 kB / 434.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001231/0.2513, allocations: 65.55 kB / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2513, allocations: 8 kB / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2513, allocations: 0 / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2513, allocations: 0 / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.6e-05/0.2514, allocations: 11.98 kB / 434.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.2514, allocations: 0 / 434.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.435e-05/0.2514, allocations: 12.08 kB / 434.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.2514, allocations: 12 kB / 434.9 MB, free: 2.543 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 8.374e-05/0.2515, allocations: 117.7 kB / 435 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.253e-05/0.2516, allocations: 53.62 kB / 435.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/0.2516, allocations: 8.344 kB / 435.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.2516, allocations: 0 / 435.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2516, allocations: 0 / 435.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2516, allocations: 3.984 kB / 435.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.2518, allocations: 144.6 kB / 435.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2518, allocations: 0 / 435.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.459e-05/0.2518, allocations: 8 kB / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.2518, allocations: 4 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.2518, allocations: 3.984 kB / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2518, allocations: 0 / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2518, allocations: 0 / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.252, allocations: 168.2 kB / 435.4 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.699e-05/0.252, allocations: 19.92 kB / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.2521, allocations: 0 / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.891e-05/0.2521, allocations: 7.984 kB / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.524e-05/0.2521, allocations: 0 / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.2521, allocations: 0 / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.899e-05/0.2522, allocations: 110.4 kB / 435.6 MB, free: 1.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2522, allocations: 0 / 435.6 MB, free: 1.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002162/0.2524, allocations: 11.94 kB / 435.6 MB, free: 1.812 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.0004977/0.2529, allocations: 0.6976 MB / 436.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000122/0.2531, allocations: 27.97 kB / 436.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2531, allocations: 0 / 436.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.571e-05/0.2531, allocations: 16.19 kB / 436.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.2534, allocations: 26.58 kB / 436.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.2549, allocations: 1.326 MB / 437.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.405e-05/0.255, allocations: 71.34 kB / 437.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.669e-05/0.255, allocations: 8.047 kB / 437.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.113e-05/0.255, allocations: 19.47 kB / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.255, allocations: 0 / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.2826, allocations: 2.035 MB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.71, allocations: 9.891 kB / 439.8 MB, free: 13.57 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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: 13.020903735014144]