Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 112.2 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 183.4 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2541, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004025/0.2581, allocations: 2.368 MB / 425 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.2599, allocations: 0.9325 MB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.2601, allocations: 4 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.2603, allocations: 43.58 kB / 426 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005735/0.2609, allocations: 135.2 kB / 426.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.2613, allocations: 179.6 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005137/0.2618, allocations: 418.8 kB / 426.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.262, allocations: 48.86 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.2623, allocations: 187.4 kB / 426.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00034/0.2626, allocations: 223.3 kB / 427.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-05/0.2627, allocations: 40 kB / 427.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002426/0.2629, allocations: 119.9 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.2631, allocations: 103.7 kB / 427.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.2632, allocations: 159.2 kB / 427.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005616/0.2638, allocations: 454.7 kB / 428 MB, free: 9.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2638, allocations: 0 / 428 MB, free: 9.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.2638, allocations: 4 kB / 428 MB, free: 9.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.2638, allocations: 0 / 428 MB, free: 9.219 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001163/0.265, allocations: 0.5636 MB / 428.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.265, allocations: 16.02 kB / 428.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.908e-05/0.2651, allocations: 62.73 kB / 428.6 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/0.2654, allocations: 52.72 kB / 428.7 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.2659, allocations: 242 kB / 428.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.2661, allocations: 144 kB / 429.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.108e-05/0.2661, allocations: 24.38 kB / 429.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007387/0.2669, allocations: 386.6 kB / 429.5 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.2669, allocations: 11.94 kB / 429.5 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.2669, allocations: 8 kB / 429.5 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.267, allocations: 8 kB / 429.5 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008574/0.2678, allocations: 418.3 kB / 429.9 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.2699, allocations: 1.177 MB / 431.1 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006815/0.2706, allocations: 330.5 kB / 431.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.271, allocations: 168.8 kB / 431.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.537e-05/0.271, allocations: 8 kB / 431.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.271, allocations: 38.56 kB / 431.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.271, allocations: 0 / 431.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004731/0.2758, allocations: 1.689 MB / 433.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.2758, allocations: 88.86 kB / 433.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.2762, allocations: 243.1 kB / 433.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.1e-05/0.2762, allocations: 37.7 kB / 433.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.2763, allocations: 132.9 kB / 433.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.2764, allocations: 162.8 kB / 433.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.2766, allocations: 82.12 kB / 434 MB, free: 2.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2767, allocations: 338.8 kB / 434.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.2771, allocations: 164.8 kB / 434.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.2775, allocations: 237.8 kB / 434.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006793/0.2782, allocations: 347.1 kB / 435.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2782, allocations: 0 / 435.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001165/0.2794, allocations: 0.5474 MB / 435.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.2794, allocations: 7.281 kB / 435.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2794, allocations: 4 kB / 435.7 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007644/0.2802, allocations: 252.7 kB / 435.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.2804, allocations: 47.91 kB / 435.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004214/0.2846, allocations: 2.797 MB / 438.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.2849, allocations: 27.97 kB / 438.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.968e-05/0.285, allocations: 12 kB / 438.8 MB, free: 13.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.2852, allocations: 159.2 kB / 438.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.11e-05/0.2853, allocations: 27.86 kB / 439 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.97e-05/0.2854, allocations: 39 kB / 439 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2854, allocations: 4 kB / 439 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2854, allocations: 4.062 kB / 439 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2854, allocations: 3.984 kB / 439 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/0.2873, allocations: 1.054 MB / 440.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2873, allocations: 0 / 440.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.2875, allocations: 43.91 kB / 440.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006776/0.2882, allocations: 244.8 kB / 440.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.2883, allocations: 15.92 kB / 440.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003881/0.2921, allocations: 2.723 MB / 443.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2921, allocations: 0 / 443.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.2937, allocations: 0.8156 MB / 443.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001549/0.2938, allocations: 59.95 kB / 444 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.824e-05/0.2939, allocations: 19.94 kB / 444 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.2941, allocations: 23.98 kB / 444 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.2943, allocations: 63.88 kB / 444.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/0.2943, allocations: 15.98 kB / 444.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002161/0.2945, allocations: 176.4 kB / 444.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2945, allocations: 0 / 444.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006127/0.2952, allocations: 139.9 kB / 444.4 MB, free: 8.176 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002185/0.2973, allocations: 1.413 MB / 445.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.2987, allocations: 0.6016 MB / 446.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.2987, allocations: 0 / 446.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007662/0.2994, allocations: 426.1 kB / 446.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.2999, allocations: 35.22 kB / 446.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005516/0.3054, allocations: 3.431 MB / 450.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.3058, allocations: 0.7801 MB / 451.1 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.306, allocations: 54.95 kB / 451.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.3062, allocations: 83.39 kB / 451.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3062, allocations: 0 / 451.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04478/0.351, allocations: 10.36 MB / 461.6 MB, free: 6.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.95, allocations: 5.578 kB / 461.6 MB, free: 6.949 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.25082620093599]