Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001294/0.001294, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001464/0.001464, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.399/1.399, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 43.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2253, allocations: 53.36 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004086/0.2294, allocations: 2.571 MB / 433.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.2313, allocations: 1.154 MB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.2315, allocations: 7.938 kB / 434.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.2318, allocations: 67.42 kB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004876/0.2322, allocations: 182.8 kB / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.2327, allocations: 179.6 kB / 435.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005884/0.2333, allocations: 0.518 MB / 435.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.2335, allocations: 65.14 kB / 435.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000408/0.2339, allocations: 239.3 kB / 436.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004733/0.2343, allocations: 279.2 kB / 436.4 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.813e-05/0.2344, allocations: 44 kB / 436.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002644/0.2347, allocations: 135.9 kB / 436.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.2348, allocations: 123.6 kB / 436.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.235, allocations: 195.1 kB / 436.8 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006569/0.2357, allocations: 0.5543 MB / 437.4 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2357, allocations: 0 / 437.4 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2357, allocations: 4 kB / 437.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.2357, allocations: 0 / 437.4 MB, free: 0.5703 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001311/0.237, allocations: 0.6376 MB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.237, allocations: 12.03 kB / 438.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.009e-05/0.2371, allocations: 62.73 kB / 438.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003972/0.2375, allocations: 68.67 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005452/0.2381, allocations: 255.2 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.2382, allocations: 148 kB / 438.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.83e-05/0.2383, allocations: 36.33 kB / 438.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008226/0.2391, allocations: 428.7 kB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.2392, allocations: 8 kB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.2392, allocations: 8 kB / 439 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.2392, allocations: 8 kB / 439.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009933/0.2402, allocations: 470.2 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.2419, allocations: 0.9359 MB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008508/0.2428, allocations: 378.2 kB / 440.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004518/0.2432, allocations: 202.1 kB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.177e-05/0.2433, allocations: 12.42 kB / 441 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.2433, allocations: 39 kB / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/0.2433, allocations: 0 / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005255/0.2486, allocations: 1.917 MB / 443 MB, free: 10.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.2486, allocations: 85.61 kB / 443.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003698/0.249, allocations: 272.9 kB / 443.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.709e-05/0.249, allocations: 33.7 kB / 443.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.2492, allocations: 141.2 kB / 443.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.2493, allocations: 194.3 kB / 443.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.2495, allocations: 90.17 kB / 443.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.2497, allocations: 346.8 kB / 444.1 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004675/0.2501, allocations: 200.8 kB / 444.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004861/0.2506, allocations: 236 kB / 444.5 MB, free: 9.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008444/0.2515, allocations: 379.4 kB / 444.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.2515, allocations: 0 / 444.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001289/0.2527, allocations: 0.6043 MB / 445.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.2528, allocations: 15.92 kB / 445.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2528, allocations: 0 / 445.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008224/0.2536, allocations: 302.5 kB / 445.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.2539, allocations: 71.81 kB / 445.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004104/0.258, allocations: 2.843 MB / 448.7 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/0.2583, allocations: 35.94 kB / 448.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/0.2584, allocations: 16 kB / 448.8 MB, free: 4.766 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002178/0.2586, allocations: 157.8 kB / 449 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.904e-05/0.2587, allocations: 35.8 kB / 449 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.2588, allocations: 51.61 kB / 449 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2588, allocations: 8.062 kB / 449 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2588, allocations: 4 kB / 449 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2588, allocations: 3.938 kB / 449.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.2612, allocations: 1.246 MB / 450.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.2612, allocations: 0 / 450.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000334/0.2616, allocations: 71.92 kB / 450.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000753/0.2623, allocations: 288.5 kB / 450.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-05/0.2624, allocations: 23.92 kB / 450.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003945/0.2663, allocations: 2.743 MB / 453.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2663, allocations: 4.031 kB / 453.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001924/0.2682, allocations: 0.9408 MB / 454.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001955/0.2684, allocations: 79.75 kB / 454.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.931e-05/0.2685, allocations: 19.88 kB / 454.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003167/0.2688, allocations: 35.91 kB / 454.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.269, allocations: 72.36 kB / 454.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.129e-05/0.269, allocations: 19.98 kB / 454.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002644/0.2693, allocations: 208.5 kB / 454.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2693, allocations: 0 / 454.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006349/0.2699, allocations: 147.9 kB / 454.9 MB, free: 14.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003567/0.2735, allocations: 1.779 MB / 456.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.275, allocations: 0.6674 MB / 457.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.275, allocations: 0 / 457.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000855/0.2759, allocations: 456.1 kB / 457.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.2763, allocations: 53.16 kB / 457.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006454/0.2828, allocations: 3.796 MB / 461.7 MB, free: 7.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.2833, allocations: 0.8007 MB / 462.5 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002649/0.2835, allocations: 86.89 kB / 462.6 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.2837, allocations: 107.4 kB / 462.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2837, allocations: 0 / 462.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06383/0.3476, allocations: 12.22 MB / 474.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.38, allocations: 4.062 kB / 474.9 MB, free: 10.52 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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: 15.741309134056792]