Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.0009396/0.0009396, allocations: 76.08 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.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.001363/0.001363, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9288/0.9288, allocations: 173.3 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.546e-05/2.694e-05, allocations: 6.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.002272/0.002299, allocations: 1.598 MB / 320 MB, free: 4.734 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007202/0.003019, allocations: 0.4908 MB / 320.5 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.355e-05/0.003112, allocations: 3.938 kB / 320.5 MB, free: 4.234 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.358e-05/0.003156, allocations: 7.875 kB / 320.5 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.003291, allocations: 15.86 kB / 320.6 MB, free: 4.211 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.003538, allocations: 59.69 kB / 320.6 MB, free: 4.152 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.003645, allocations: 55.78 kB / 320.7 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.8e-05/0.003743, allocations: 19.97 kB / 320.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.046e-05/0.003824, allocations: 39.83 kB / 320.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.804e-05/0.003872, allocations: 23.92 kB / 320.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.003894, allocations: 4 kB / 320.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.017e-05/0.003904, allocations: 4 kB / 320.8 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.626e-05/0.00395, allocations: 15.92 kB / 320.8 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.412e-05/0.003974, allocations: 19.92 kB / 320.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.004088, allocations: 55.8 kB / 320.9 MB, free: 3.918 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.00409, allocations: 7.938 kB / 320.9 MB, free: 3.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.004091, allocations: 0 / 320.9 MB, free: 3.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.004096, allocations: 0 / 320.9 MB, free: 3.91 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003775/0.004473, allocations: 313.2 kB / 321.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.004513, allocations: 8.922 kB / 321.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.215e-05/0.004545, allocations: 42.75 kB / 321.2 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.664e-05/0.004571, allocations: 8.891 kB / 321.2 MB, free: 3.512 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.004786, allocations: 167.2 kB / 321.4 MB, free: 3.324 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.004801, allocations: 8.375 kB / 321.4 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.00481, allocations: 384 / 321.4 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002484/0.005058, allocations: 143.2 kB / 321.5 MB, free: 3.152 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.005066, allocations: 192 / 321.5 MB, free: 3.152 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.005078, allocations: 8.125 kB / 321.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.005082, allocations: 0 / 321.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.326e-05/0.005136, allocations: 27.92 kB / 321.6 MB, free: 3.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002653/0.005401, allocations: 250.5 kB / 321.8 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.502e-05/0.005496, allocations: 94.42 kB / 321.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.737e-05/0.005543, allocations: 43.44 kB / 321.9 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.005564, allocations: 11.92 kB / 322 MB, free: 2.625 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.005584, allocations: 34.56 kB / 322 MB, free: 2.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.005585, allocations: 0 / 322 MB, free: 2.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001996/0.005785, allocations: 97.5 kB / 322.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.005843, allocations: 140.5 kB / 322.2 MB, free: 2.312 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.351e-05/0.005936, allocations: 149.9 kB / 322.4 MB, free: 2.156 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.005947, allocations: 37.64 kB / 322.4 MB, free: 2.113 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.08e-05/0.005988, allocations: 92.09 kB / 322.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.245e-05/0.006, allocations: 4 kB / 322.5 MB, free: 2.016 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.006023, allocations: 9.719 kB / 322.5 MB, free: 2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.65e-05/0.0061, allocations: 322.8 kB / 322.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.087e-05/0.006121, allocations: 4 kB / 322.8 MB, free: 1.672 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.538e-05/0.006136, allocations: 11.92 kB / 322.8 MB, free: 1.66 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.192e-05/0.006178, allocations: 24.84 kB / 322.9 MB, free: 1.633 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.00618, allocations: 4.062 kB / 322.9 MB, free: 1.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.246e-05/0.006242, allocations: 49.58 kB / 322.9 MB, free: 1.574 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.006255, allocations: 4 kB / 322.9 MB, free: 1.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.006259, allocations: 0 / 322.9 MB, free: 1.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.006271, allocations: 4 kB / 322.9 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.398e-05/0.006325, allocations: 0 / 322.9 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.006329, allocations: 0 / 322.9 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.01e-05/0.006349, allocations: 7.984 kB / 322.9 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.006355, allocations: 0 / 322.9 MB, free: 1.559 MB / 282.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: 0 () * 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 7.043e-05/0.006426, allocations: 125.8 kB / 323.1 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.225e-05/0.006488, allocations: 73.52 kB / 323.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.996e-05/0.006518, allocations: 15.95 kB / 323.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.00652, allocations: 0 / 323.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.006524, allocations: 0 / 323.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.006528, allocations: 4 kB / 323.2 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.006647, allocations: 152.6 kB / 323.3 MB, free: 1.133 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.006648, allocations: 0 / 323.3 MB, free: 1.133 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.06e-05/0.006689, allocations: 12 kB / 323.3 MB, free: 1.121 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.006691, allocations: 4.094 kB / 323.3 MB, free: 1.117 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.0067, allocations: 7.984 kB / 323.3 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.006703, allocations: 4 kB / 323.3 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.006705, allocations: 0 / 323.3 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001204/0.006825, allocations: 197.9 kB / 323.5 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.006856, allocations: 15.94 kB / 323.5 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.006869, allocations: 4 kB / 323.5 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.489e-05/0.006904, allocations: 0 / 323.5 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.524e-05/0.006929, allocations: 4 kB / 323.5 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.006933, allocations: 0 / 323.5 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.167e-05/0.006984, allocations: 123.2 kB / 323.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006984, allocations: 0 / 323.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001396/0.007124, allocations: 4 kB / 323.7 MB, free: 0.7383 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0005603/0.007684, allocations: 0.7304 MB / 324.4 MB, free: 15.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.149e-05/0.007776, allocations: 27.98 kB / 324.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.007778, allocations: 3.938 kB / 324.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.894e-05/0.007797, allocations: 19.98 kB / 324.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.008076, allocations: 38.98 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008585/0.008934, allocations: 1.382 MB / 325.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.976e-05/0.008994, allocations: 90.33 kB / 326 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.065e-05/0.009025, allocations: 4 kB / 326 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.95e-05/0.009064, allocations: 20.48 kB / 326 MB, free: 14.28 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.009065, allocations: 0 / 326 MB, free: 14.28 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.02568, allocations: 2.715 MB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.685/6.711, allocations: 11.03 kB / 328.7 MB, free: 11.69 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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: 8.464577961713076]