Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 216 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.WhyArrows,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 55.91 kB / 377.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2527, allocations: 53.4 MB / 431.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.00388/0.2566, allocations: 2.142 MB / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004596/0.2571, allocations: 203.2 kB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.029e-05/0.2571, allocations: 4 kB / 433.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.008e-05/0.2572, allocations: 35.64 kB / 433.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.2574, allocations: 63.36 kB / 433.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.2576, allocations: 55.94 kB / 433.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.2578, allocations: 231 kB / 433.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.258, allocations: 75.02 kB / 433.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.2582, allocations: 87.72 kB / 434 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.2583, allocations: 91.53 kB / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.2584, allocations: 24 kB / 434.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.668e-05/0.2584, allocations: 20 kB / 434.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.095e-05/0.2585, allocations: 47.84 kB / 434.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.2586, allocations: 91.59 kB / 434.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003282/0.2589, allocations: 260.6 kB / 434.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.2589, allocations: 0 / 434.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2589, allocations: 4 kB / 434.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.2589, allocations: 3.938 kB / 434.5 MB, free: 3.062 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007914/0.2597, allocations: 441.8 kB / 435 MB, free: 2.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.2598, allocations: 11.98 kB / 435 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.17e-05/0.2598, allocations: 62.72 kB / 435 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.347e-05/0.2599, allocations: 24.8 kB / 435.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.2601, allocations: 162.2 kB / 435.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.2601, allocations: 20.88 kB / 435.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.2602, allocations: 20.38 kB / 435.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004001/0.2606, allocations: 232 kB / 435.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.2606, allocations: 3.938 kB / 435.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.251e-05/0.2606, allocations: 12 kB / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.2606, allocations: 4 kB / 435.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.2609, allocations: 131.9 kB / 435.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.262, allocations: 0.782 MB / 436.4 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.2622, allocations: 147.7 kB / 436.6 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.418e-05/0.2623, allocations: 58.81 kB / 436.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.2624, allocations: 4 kB / 436.6 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.2624, allocations: 50.45 kB / 436.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.873e-06/0.2624, allocations: 0 / 436.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003888/0.2628, allocations: 165.9 kB / 436.8 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/0.2629, allocations: 110.8 kB / 436.9 MB, free: 444 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.2631, allocations: 207.4 kB / 437.1 MB, free: 228 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.2631, allocations: 29.7 kB / 437.2 MB, free: 192 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2632, allocations: 164.2 kB / 437.3 MB, free: 24 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.945e-05/0.2633, allocations: 71.61 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.984e-05/0.2634, allocations: 49.94 kB / 437.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2635, allocations: 326.8 kB / 437.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.635e-05/0.2636, allocations: 52.53 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.2638, allocations: 155.8 kB / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.2641, allocations: 221.7 kB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.2641, allocations: 8 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000379/0.2645, allocations: 245 kB / 438.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.2645, allocations: 11.94 kB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2645, allocations: 4.438 kB / 438.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.2645, allocations: 8 kB / 438.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.2647, allocations: 59.91 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.2647, allocations: 4 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.2649, allocations: 31.78 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.2649, allocations: 12 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (33): * Single equations (assignments): 33 * 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 0.0001423/0.265, allocations: 137.7 kB / 438.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.944e-05/0.2651, allocations: 23.8 kB / 438.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.011e-05/0.2652, allocations: 29.39 kB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2652, allocations: 0 / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.2652, allocations: 0 / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2652, allocations: 11.94 kB / 438.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005834/0.2658, allocations: 376 kB / 439.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2658, allocations: 0 / 439.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001904/0.266, allocations: 35.98 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.892e-06/0.266, allocations: 4 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.266, allocations: 4 kB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.266, allocations: 4 kB / 439.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.266, allocations: 7.875 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.2665, allocations: 376.7 kB / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.2665, allocations: 35.83 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.2665, allocations: 4 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.2667, allocations: 4 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.583e-05/0.2667, allocations: 15.86 kB / 439.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.2667, allocations: 12 kB / 439.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.2669, allocations: 135.2 kB / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2669, allocations: 0 / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.2672, allocations: 51.95 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.v) * 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 (17): * Single equations (assignments): 17 * 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.0008011/0.268, allocations: 0.9117 MB / 440.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002925/0.2683, allocations: 140 kB / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2683, allocations: 0 / 440.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.088e-05/0.2684, allocations: 52.16 kB / 440.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005429/0.2689, allocations: 41.19 kB / 441 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.272, allocations: 2.553 MB / 443.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/0.2721, allocations: 121.2 kB / 443.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.796e-05/0.2722, allocations: 17.95 kB / 443.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.2723, allocations: 63.39 kB / 443.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2723, allocations: 3.938 kB / 443.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03486/0.3072, allocations: 4.33 MB / 448 MB, free: 4.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.07, allocations: 7.234 kB / 448 MB, free: 4.984 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_WhyArrows.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.WhyArrows.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: 14.966589847113937]