Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001667/0.001667, allocations: 112.2 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.002225/0.002225, allocations: 189.9 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.377/1.377, 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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 51.92 kB / 370.5 MB, free: 9.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2452, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.00291/0.2482, allocations: 1.595 MB / 424.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008284/0.249, allocations: 490.7 kB / 424.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.609e-05/0.2491, allocations: 4 kB / 424.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.077e-05/0.2491, allocations: 7.875 kB / 424.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.2492, allocations: 7.922 kB / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.2495, allocations: 55.2 kB / 424.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.2496, allocations: 51.78 kB / 424.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.022e-05/0.2497, allocations: 12.19 kB / 424.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.525e-05/0.2498, allocations: 23.91 kB / 424.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.836e-05/0.2498, allocations: 23.86 kB / 424.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.2498, allocations: 4 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.156e-05/0.2498, allocations: 4 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.604e-05/0.2499, allocations: 15.92 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.2499, allocations: 23.81 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.25, allocations: 60.09 kB / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.25, allocations: 0 / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2501, allocations: 0 / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.2501, allocations: 0 / 425 MB, free: 12.25 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004539/0.2505, allocations: 302 kB / 425.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.2505, allocations: 12.03 kB / 425.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.891e-05/0.2506, allocations: 38.73 kB / 425.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.2506, allocations: 8.891 kB / 425.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.2509, allocations: 146.3 kB / 425.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.2509, allocations: 384 / 425.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.2509, allocations: 8.359 kB / 425.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.2511, allocations: 117.8 kB / 425.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.2511, allocations: 0 / 425.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.719e-06/0.2512, allocations: 4 kB / 425.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2512, allocations: 3.984 kB / 425.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.271e-05/0.2512, allocations: 23.92 kB / 425.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003145/0.2516, allocations: 249.7 kB / 425.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.2517, allocations: 67.78 kB / 426 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.712e-05/0.2517, allocations: 34.58 kB / 426 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.2518, allocations: 11.94 kB / 426 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.2518, allocations: 34.55 kB / 426 MB, free: 11.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2518, allocations: 0 / 426 MB, free: 11.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002543/0.2521, allocations: 81.91 kB / 426.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.266e-05/0.2521, allocations: 114.8 kB / 426.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.2523, allocations: 144.4 kB / 426.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.2523, allocations: 25.7 kB / 426.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.513e-05/0.2523, allocations: 92.08 kB / 426.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.2523, allocations: 7.953 kB / 426.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.2524, allocations: 13.72 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2525, allocations: 334.7 kB / 426.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.973e-05/0.2526, allocations: 4 kB / 426.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.363e-05/0.2526, allocations: 35.42 kB / 426.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.2527, allocations: 47.36 kB / 426.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2527, allocations: 0 / 426.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001414/0.2529, allocations: 73.56 kB / 427 MB, free: 9.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.2529, allocations: 8 kB / 427 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2529, allocations: 0 / 427 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2529, allocations: 0 / 427 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.788e-05/0.253, allocations: 15.92 kB / 427 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.253, allocations: 4.125 kB / 427 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.837e-05/0.253, allocations: 4 kB / 427 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.253, allocations: 4 kB / 427 MB, free: 9.945 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.703e-05/0.2531, allocations: 117.8 kB / 427.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.185e-05/0.2532, allocations: 53.58 kB / 427.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.2532, allocations: 11.97 kB / 427.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2532, allocations: 7.984 kB / 427.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.2532, allocations: 0 / 427.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2532, allocations: 4.062 kB / 427.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.2534, allocations: 144.7 kB / 427.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2534, allocations: 0 / 427.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.228e-05/0.2535, allocations: 11.98 kB / 427.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2535, allocations: 0 / 427.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.2535, allocations: 4 kB / 427.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2535, allocations: 0 / 427.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2535, allocations: 0 / 427.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.2537, allocations: 189 kB / 427.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.085e-05/0.2537, allocations: 19.94 kB / 427.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.2538, allocations: 0 / 427.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.917e-05/0.2538, allocations: 4 kB / 427.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.185e-05/0.2539, allocations: 0 / 427.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.2539, allocations: 4 kB / 427.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.294e-05/0.2539, allocations: 111.2 kB / 427.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2539, allocations: 4 kB / 427.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.2542, allocations: 8 kB / 427.7 MB, free: 9.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.00051/0.2547, allocations: 0.718 MB / 428.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.2548, allocations: 31.92 kB / 428.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2548, allocations: 0 / 428.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.28e-05/0.2548, allocations: 4 kB / 428.5 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.0003254/0.2552, allocations: 35.39 kB / 428.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.2566, allocations: 1.403 MB / 429.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.2569, allocations: 0.6961 MB / 430.6 MB, free: 6.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.759e-05/0.2569, allocations: 4 kB / 430.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.788e-05/0.257, allocations: 15.44 kB / 430.6 MB, free: 6.109 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.257, allocations: 0 / 430.6 MB, free: 6.109 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.2834, allocations: 1.778 MB / 432.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.8, allocations: 17.16 kB / 432.4 MB, free: 4.449 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.095837156055495]