Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001398/0.001398, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001421/0.001421, allocations: 208.4 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.394/1.394, 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.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 43.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2371, allocations: 53.37 MB / 431.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002857/0.24, allocations: 1.592 MB / 432.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009661/0.2409, allocations: 0.5026 MB / 433.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.37e-05/0.241, allocations: 0 / 433.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.663e-05/0.241, allocations: 7.875 kB / 433.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.2412, allocations: 15.91 kB / 433.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.2415, allocations: 63.81 kB / 433.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.2416, allocations: 51.8 kB / 433.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.207e-05/0.2417, allocations: 12.16 kB / 433.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.2418, allocations: 39.86 kB / 433.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.859e-05/0.2419, allocations: 11.88 kB / 433.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.2419, allocations: 4 kB / 433.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.145e-05/0.2419, allocations: 11.98 kB / 433.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.551e-05/0.242, allocations: 15.92 kB / 433.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.242, allocations: 19.86 kB / 433.4 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.2421, allocations: 61.38 kB / 433.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2421, allocations: 0 / 433.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2421, allocations: 0 / 433.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2421, allocations: 0 / 433.5 MB, free: 4.355 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.0004731/0.2426, allocations: 309.9 kB / 433.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.2426, allocations: 12.03 kB / 433.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.614e-05/0.2427, allocations: 34.75 kB / 433.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.2428, allocations: 20.88 kB / 433.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.2431, allocations: 150.8 kB / 434 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.2431, allocations: 12.11 kB / 434 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.2431, allocations: 0 / 434 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.2434, allocations: 117.9 kB / 434.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.2434, allocations: 0 / 434.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-06/0.2434, allocations: 4 kB / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2434, allocations: 0 / 434.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.294e-05/0.2435, allocations: 23.92 kB / 434.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003299/0.2438, allocations: 245.6 kB / 434.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001126/0.2439, allocations: 67.8 kB / 434.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.833e-05/0.244, allocations: 34.62 kB / 434.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.244, allocations: 0 / 434.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.2441, allocations: 38.5 kB / 434.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.2441, allocations: 3.938 kB / 434.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002548/0.2443, allocations: 85.55 kB / 434.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.238e-05/0.2444, allocations: 110.8 kB / 434.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.2445, allocations: 145.1 kB / 434.9 MB, free: 2.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.2445, allocations: 33.7 kB / 434.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/0.2446, allocations: 92.12 kB / 435 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.055e-05/0.2446, allocations: 0 / 435 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.2447, allocations: 29.61 kB / 435 MB, free: 2.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002051/0.2449, allocations: 314.8 kB / 435.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.477e-05/0.2449, allocations: 12 kB / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.799e-05/0.245, allocations: 31.42 kB / 435.4 MB, free: 2.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.651e-05/0.2451, allocations: 51.36 kB / 435.4 MB, free: 2.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.2451, allocations: 0 / 435.4 MB, free: 2.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001336/0.2452, allocations: 65.61 kB / 435.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.2452, allocations: 8 kB / 435.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.2452, allocations: 0 / 435.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.2452, allocations: 0 / 435.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.157e-05/0.2453, allocations: 11.98 kB / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2453, allocations: 12 kB / 435.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.812e-05/0.2454, allocations: 4 kB / 435.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.2454, allocations: 7.938 kB / 435.5 MB, free: 2.039 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.48e-05/0.2455, allocations: 113.8 kB / 435.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.299e-05/0.2455, allocations: 57.59 kB / 435.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.097e-05/0.2456, allocations: 7.969 kB / 435.7 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.2456, allocations: 7.984 kB / 435.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.2456, allocations: 7.938 kB / 435.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2456, allocations: 3.938 kB / 435.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.2458, allocations: 144.8 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2458, allocations: 0 / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.845e-05/0.2458, allocations: 11.98 kB / 435.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2458, allocations: 0 / 435.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.2458, allocations: 4 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2458, allocations: 0 / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2458, allocations: 3.938 kB / 435.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002213/0.2461, allocations: 181.1 kB / 436.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.2461, allocations: 15.94 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.2461, allocations: 8 kB / 436.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.2462, allocations: 0 / 436.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.2462, allocations: 12.06 kB / 436.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.2462, allocations: 0 / 436.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.586e-05/0.2463, allocations: 115.2 kB / 436.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2463, allocations: 0 / 436.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.2465, allocations: 7.938 kB / 436.2 MB, free: 1.266 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.0005297/0.2471, allocations: 0.7063 MB / 436.9 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001444/0.2472, allocations: 35.92 kB / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2472, allocations: 0 / 437 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.771e-05/0.2472, allocations: 11.92 kB / 437 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.2476, allocations: 33.03 kB / 437 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.2491, allocations: 1.402 MB / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.951e-05/0.2492, allocations: 75.33 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.421e-05/0.2493, allocations: 7.984 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.975e-05/0.2493, allocations: 15.44 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2493, allocations: 0 / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03418/0.2835, allocations: 2.261 MB / 440.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.85, allocations: 11.31 kB / 440.8 MB, free: 12.7 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.18585926713422]