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.001282/0.001282, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001368/0.001368, allocations: 207.8 kB / 23.73 MB, free: 4.523 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.408/1.408, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001447/0.001447, allocations: 43.94 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.244, allocations: 53.37 MB / 431.1 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002975/0.2469, allocations: 1.588 MB / 432.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.248, allocations: 0.5025 MB / 433.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2481, allocations: 11.94 kB / 433.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.195e-05/0.2482, allocations: 7.922 kB / 433.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.2483, allocations: 7.875 kB / 433.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003497/0.2487, allocations: 67.8 kB / 433.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.2488, allocations: 39.86 kB / 433.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.2489, allocations: 20.11 kB / 433.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.249, allocations: 35.91 kB / 433.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.152e-05/0.2491, allocations: 19.86 kB / 433.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.2491, allocations: 4 kB / 433.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.864e-05/0.2491, allocations: 8 kB / 433.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.309e-05/0.2492, allocations: 15.92 kB / 433.4 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.2492, allocations: 19.88 kB / 433.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.2494, allocations: 69.3 kB / 433.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.2494, allocations: 0 / 433.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2494, allocations: 0 / 433.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.2494, allocations: 0 / 433.5 MB, free: 4.344 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.0005158/0.2499, allocations: 305.9 kB / 433.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2499, allocations: 12.03 kB / 433.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.736e-05/0.25, allocations: 34.73 kB / 433.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.2501, allocations: 20.89 kB / 433.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.2504, allocations: 142.9 kB / 434 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.2504, allocations: 8.125 kB / 434 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.2504, allocations: 11.88 kB / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.2507, allocations: 117.9 kB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.2507, allocations: 0 / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.2507, allocations: 4 kB / 434.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.2507, allocations: 0 / 434.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.962e-05/0.2508, allocations: 27.97 kB / 434.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003185/0.2511, allocations: 245.5 kB / 434.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.2513, allocations: 67.78 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.901e-05/0.2513, allocations: 30.64 kB / 434.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.2514, allocations: 3.984 kB / 434.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.2514, allocations: 42.56 kB / 434.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.2514, allocations: 0 / 434.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002706/0.2517, allocations: 85.5 kB / 434.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.2517, allocations: 102.8 kB / 434.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.2519, allocations: 156.5 kB / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.2519, allocations: 25.7 kB / 434.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.607e-05/0.252, allocations: 92.12 kB / 435 MB, free: 2.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.252, allocations: 384 / 435 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.082e-05/0.252, allocations: 29.66 kB / 435 MB, free: 2.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2521, allocations: 318.8 kB / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.437e-05/0.2522, allocations: 7.984 kB / 435.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.508e-05/0.2522, allocations: 35.42 kB / 435.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.2523, allocations: 47.36 kB / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2523, allocations: 0 / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001375/0.2525, allocations: 73.56 kB / 435.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2525, allocations: 4 kB / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.2525, allocations: 4 kB / 435.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.2525, allocations: 0 / 435.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/0.2526, allocations: 11.98 kB / 435.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.2526, allocations: 3.938 kB / 435.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.224e-05/0.2526, allocations: 4 kB / 435.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.2527, allocations: 0 / 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.556e-05/0.2527, allocations: 126 kB / 435.7 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.2528, allocations: 53.55 kB / 435.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.988e-05/0.2529, allocations: 15.95 kB / 435.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.2529, allocations: 0 / 435.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.2529, allocations: 11.88 kB / 435.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.2529, allocations: 0 / 435.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.2531, allocations: 144.7 kB / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2531, allocations: 0 / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.734e-05/0.2531, allocations: 8 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2531, allocations: 64 / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.2531, allocations: 8 kB / 435.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.2531, allocations: 11.92 kB / 435.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2531, allocations: 3.938 kB / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.2533, allocations: 177.2 kB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.2534, allocations: 7.953 kB / 436.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/0.2534, allocations: 11.98 kB / 436.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.064e-05/0.2535, allocations: 3.938 kB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.038e-05/0.2535, allocations: 3.938 kB / 436.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.2535, allocations: 4 kB / 436.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.215e-05/0.2536, allocations: 115.2 kB / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2536, allocations: 0 / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.2538, allocations: 4 kB / 436.2 MB, free: 1.258 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.0004808/0.2543, allocations: 0.7064 MB / 436.9 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001467/0.2544, allocations: 39.94 kB / 437 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2544, allocations: 0 / 437 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.429e-05/0.2545, allocations: 12.25 kB / 437 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.2548, allocations: 33.14 kB / 437 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.2563, allocations: 1.403 MB / 438.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.603e-05/0.2564, allocations: 79.58 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.335e-05/0.2564, allocations: 8 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.882e-05/0.2564, allocations: 15.42 kB / 438.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2565, allocations: 0 / 438.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.2847, allocations: 2.273 MB / 440.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.72, allocations: 10.58 kB / 440.8 MB, free: 12.67 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.033029534999514]