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.00141/0.00141, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.001542/0.001542, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.002017/0.002017, allocations: 71.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2457, allocations: 53.42 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.003354/0.249, allocations: 2.266 MB / 433.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004543/0.2495, allocations: 199.3 kB / 433.6 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.093e-05/0.2496, allocations: 7.938 kB / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.498e-05/0.2496, allocations: 35.64 kB / 433.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.2498, allocations: 67.42 kB / 433.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.25, allocations: 47.92 kB / 433.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.2502, allocations: 239 kB / 434 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.2504, allocations: 79.02 kB / 434.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.2505, allocations: 91.7 kB / 434.2 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001456/0.2507, allocations: 99.55 kB / 434.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.2507, allocations: 27.94 kB / 434.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.519e-05/0.2507, allocations: 24 kB / 434.3 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.354e-05/0.2508, allocations: 43.84 kB / 434.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.2509, allocations: 119.5 kB / 434.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.2512, allocations: 251.4 kB / 434.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2512, allocations: 4 kB / 434.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2512, allocations: 0 / 434.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.2512, allocations: 0 / 434.8 MB, free: 3.121 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.0007031/0.2519, allocations: 445.8 kB / 435.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2519, allocations: 11.97 kB / 435.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.252, allocations: 54.73 kB / 435.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/0.252, allocations: 24.8 kB / 435.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.2522, allocations: 170.1 kB / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.2523, allocations: 12.88 kB / 435.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.755e-05/0.2523, allocations: 32.31 kB / 435.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.2527, allocations: 232.1 kB / 435.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.2527, allocations: 7.922 kB / 435.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.2527, allocations: 8 kB / 435.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.2527, allocations: 4 kB / 435.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.253, allocations: 135.1 kB / 435.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.2541, allocations: 0.821 MB / 436.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.2544, allocations: 163.6 kB / 436.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.349e-05/0.2545, allocations: 54.56 kB / 436.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.2545, allocations: 0 / 436.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.2545, allocations: 46.44 kB / 437 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.012e-06/0.2545, allocations: 0 / 437 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0003763/0.2549, allocations: 169.8 kB / 437.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.255, allocations: 102.8 kB / 437.2 MB, free: 456 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.2552, allocations: 199.5 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.2552, allocations: 33.7 kB / 437.4 MB, free: 208 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.2553, allocations: 160.2 kB / 437.6 MB, free: 44 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.175e-05/0.2554, allocations: 67.59 kB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.214e-05/0.2555, allocations: 57.94 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2556, allocations: 330.8 kB / 438 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.443e-05/0.2557, allocations: 48.55 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.2559, allocations: 159.3 kB / 438.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.2562, allocations: 217.5 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.2562, allocations: 4 kB / 438.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003605/0.2566, allocations: 249.6 kB / 438.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2566, allocations: 10.5 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2566, allocations: 4 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2566, allocations: 4.438 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.2568, allocations: 67.91 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.2568, allocations: 8 kB / 438.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.257, allocations: 31.73 kB / 438.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.257, allocations: 8 kB / 438.8 MB, free: 14.68 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.0001324/0.2571, allocations: 141.7 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.255e-05/0.2572, allocations: 23.83 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.726e-05/0.2572, allocations: 21.41 kB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.2572, allocations: 4 kB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2572, allocations: 7.938 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.2573, allocations: 7.984 kB / 439 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005622/0.2578, allocations: 391.9 kB / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2578, allocations: 0 / 439.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002102/0.258, allocations: 39.92 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.258, allocations: 0 / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.2581, allocations: 8.188 kB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.2581, allocations: 12.03 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2581, allocations: 0 / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004006/0.2585, allocations: 385 kB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.003e-05/0.2585, allocations: 15.91 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.2585, allocations: 8 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.2586, allocations: 4 kB / 439.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.878e-05/0.2587, allocations: 15.95 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.2587, allocations: 12 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.2588, allocations: 131.2 kB / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2588, allocations: 0 / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003473/0.2591, allocations: 55.89 kB / 440.1 MB, free: 13.33 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.0006951/0.2598, allocations: 0.9126 MB / 441 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000261/0.2601, allocations: 139.7 kB / 441.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2601, allocations: 0 / 441.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.632e-05/0.2602, allocations: 51.92 kB / 441.2 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.0004945/0.2607, allocations: 34.64 kB / 441.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.2635, allocations: 2.559 MB / 443.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.2639, allocations: 0.7398 MB / 444.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.436e-05/0.264, allocations: 21.94 kB / 444.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.652e-05/0.2641, allocations: 55.42 kB / 444.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2641, allocations: 0 / 444.6 MB, free: 8.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03402/0.2981, allocations: 4.014 MB / 448.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.21, allocations: 22.59 kB / 448.6 MB, free: 4.652 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.508612320991233]