Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.001281/0.001281, 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.001454/0.001454, allocations: 209.3 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.368/1.368, allocations: 230.6 MB / 257.5 MB, free: 7.77 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.Sample3,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 47.94 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2382, allocations: 53.35 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003229/0.2415, allocations: 1.699 MB / 432.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005075/0.242, allocations: 159.4 kB / 432.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.2421, allocations: 7.938 kB / 432.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.694e-05/0.2421, allocations: 3.938 kB / 433 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.2423, allocations: 19.8 kB / 433 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.2426, allocations: 43.89 kB / 433 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.2427, allocations: 55.78 kB / 433.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.2428, allocations: 27.97 kB / 433.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.001e-05/0.2429, allocations: 15.94 kB / 433.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.764e-05/0.2429, allocations: 31.8 kB / 433.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.2429, allocations: 4 kB / 433.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.458e-05/0.243, allocations: 8 kB / 433.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.71e-05/0.243, allocations: 19.92 kB / 433.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.243, allocations: 19.86 kB / 433.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.2432, allocations: 73.3 kB / 433.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2432, allocations: 0 / 433.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2432, allocations: 0 / 433.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.2432, allocations: 0 / 433.3 MB, free: 4.469 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.00048/0.2437, allocations: 317.9 kB / 433.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2437, allocations: 12.03 kB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.012e-05/0.2438, allocations: 46.67 kB / 433.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.2438, allocations: 8.891 kB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.244, allocations: 138.4 kB / 433.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.244, allocations: 8.375 kB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.479e-05/0.244, allocations: 4.375 kB / 433.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.2444, allocations: 169 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.2444, allocations: 7.938 kB / 434 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.2444, allocations: 7.938 kB / 434 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.2444, allocations: 0 / 434 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.2445, allocations: 39.91 kB / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003741/0.2449, allocations: 329 kB / 434.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.2452, allocations: 111.8 kB / 434.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.724e-05/0.2453, allocations: 54.62 kB / 434.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.2453, allocations: 4 kB / 434.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.2453, allocations: 38.56 kB / 434.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.2453, allocations: 0 / 434.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.000334/0.2457, allocations: 121.7 kB / 434.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/0.2457, allocations: 114.8 kB / 434.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.2459, allocations: 140.3 kB / 434.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2459, allocations: 25.7 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.68e-05/0.2459, allocations: 84.39 kB / 435 MB, free: 2.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.246, allocations: 23.88 kB / 435 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.246, allocations: 25.67 kB / 435.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.2461, allocations: 318.8 kB / 435.4 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.31e-05/0.2462, allocations: 15.98 kB / 435.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.154e-05/0.2463, allocations: 71.66 kB / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.2464, allocations: 99.58 kB / 435.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2464, allocations: 0 / 435.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001746/0.2466, allocations: 105.7 kB / 435.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2466, allocations: 12.03 kB / 435.7 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2466, allocations: 0 / 435.7 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2466, allocations: 4 kB / 435.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.026e-05/0.2467, allocations: 23.92 kB / 435.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.2467, allocations: 0 / 435.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.718e-05/0.2467, allocations: 7.953 kB / 435.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.2468, allocations: 8 kB / 435.7 MB, free: 1.719 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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.227e-05/0.2469, allocations: 129.7 kB / 435.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.247, allocations: 73.64 kB / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.735e-05/0.247, allocations: 12.72 kB / 435.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.247, allocations: 4 kB / 435.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.247, allocations: 4 kB / 435.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.247, allocations: 0 / 435.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.2472, allocations: 156.5 kB / 436.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.2473, allocations: 4 kB / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.46e-05/0.2473, allocations: 19.92 kB / 436.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.2473, allocations: 4 kB / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.2473, allocations: 0 / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2473, allocations: 0 / 436.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2473, allocations: 4 kB / 436.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003587/0.2477, allocations: 316.3 kB / 436.4 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.636e-05/0.2477, allocations: 31.86 kB / 436.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.2478, allocations: 4 kB / 436.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.257e-05/0.2479, allocations: 0 / 436.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.2479, allocations: 11.94 kB / 436.5 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.2479, allocations: 3.984 kB / 436.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.929e-05/0.248, allocations: 111.5 kB / 436.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.248, allocations: 0 / 436.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.2483, allocations: 8 kB / 436.6 MB, free: 0.7539 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 (10): * Single equations (assignments): 10 * 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.0006116/0.2489, allocations: 0.8421 MB / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000173/0.249, allocations: 63.84 kB / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.249, allocations: 0 / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.903e-05/0.2491, allocations: 12.62 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.2495, allocations: 43.94 kB / 437.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.2511, allocations: 1.58 MB / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.46e-05/0.2512, allocations: 91.33 kB / 439.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.378e-05/0.2513, allocations: 8.656 kB / 439.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.027e-05/0.2513, allocations: 19.44 kB / 439.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2513, allocations: 0 / 439.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03782/0.2891, allocations: 2.463 MB / 441.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.8, allocations: 7.75 kB / 441.7 MB, free: 11.58 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.065918231004616]