Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001381/0.001381, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001668/0.001668, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.437/1.437, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09762, allocations: 53.32 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004096/0.1017, allocations: 2.464 MB / 428.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.1036, allocations: 1.049 MB / 429.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.1038, allocations: 11.94 kB / 429.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.104, allocations: 63.5 kB / 429.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004699/0.1045, allocations: 155.9 kB / 430 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.1049, allocations: 167.7 kB / 430.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005552/0.1055, allocations: 466.7 kB / 430.7 MB, free: 420 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1056, allocations: 48.7 kB / 430.7 MB, free: 372 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.1059, allocations: 211.4 kB / 430.9 MB, free: 160 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1764/0.2823, allocations: 244.1 kB / 431.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.2825, allocations: 36.78 kB / 431.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003288/0.2828, allocations: 125.3 kB / 431.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.283, allocations: 106.7 kB / 431.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.2831, allocations: 178.3 kB / 431.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005998/0.2837, allocations: 0.4934 MB / 432.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2837, allocations: 0.6562 kB / 432.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2837, allocations: 1.094 kB / 432.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.2837, allocations: 0.625 kB / 432.1 MB, free: 7.828 MB / 350.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.001099/0.2848, allocations: 0.6735 MB / 432.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.2849, allocations: 10.81 kB / 432.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.217e-05/0.2849, allocations: 61.28 kB / 432.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.2852, allocations: 55.3 kB / 432.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.2857, allocations: 308 kB / 433.2 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.2858, allocations: 88.84 kB / 433.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.2858, allocations: 27.95 kB / 433.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006123/0.2864, allocations: 385.7 kB / 433.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.2865, allocations: 1.688 kB / 433.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.2865, allocations: 10.62 kB / 433.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.916e-06/0.2865, allocations: 12.25 kB / 433.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007892/0.2873, allocations: 413.2 kB / 434.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2891, allocations: 1.262 MB / 435.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006557/0.2898, allocations: 324.4 kB / 435.7 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003558/0.2901, allocations: 167.9 kB / 435.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.2902, allocations: 7.188 kB / 435.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.2902, allocations: 37.73 kB / 435.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.974e-06/0.2902, allocations: 1.781 kB / 435.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004549/0.2947, allocations: 1.896 MB / 437.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.2948, allocations: 85.36 kB / 437.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.2951, allocations: 251.8 kB / 438.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.2951, allocations: 37.67 kB / 438.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.279e-05/0.2952, allocations: 134.2 kB / 438.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.461e-05/0.2953, allocations: 162.5 kB / 438.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.2954, allocations: 88.05 kB / 438.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.256e-05/0.2954, allocations: 333.3 kB / 438.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.2958, allocations: 165.6 kB / 439 MB, free: 4.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.2962, allocations: 229.3 kB / 439.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006499/0.2969, allocations: 338.8 kB / 439.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2969, allocations: 2.781 kB / 439.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001103/0.298, allocations: 0.5339 MB / 440.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.298, allocations: 6.062 kB / 440.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.298, allocations: 1.5 kB / 440.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008009/0.2988, allocations: 299.7 kB / 440.4 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.299, allocations: 58.69 kB / 440.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003511/0.3025, allocations: 2.895 MB / 443.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.3029, allocations: 22.3 kB / 443.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.67e-05/0.3029, allocations: 20.41 kB / 443.4 MB, free: 1.945 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.0001656/0.3031, allocations: 161.3 kB / 443.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-05/0.3032, allocations: 33.94 kB / 443.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.526e-05/0.3033, allocations: 43.36 kB / 443.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3033, allocations: 5.375 kB / 443.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3033, allocations: 0 / 443.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.3033, allocations: 2.578 kB / 443.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001762/0.305, allocations: 1.101 MB / 444.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.305, allocations: 3.391 kB / 444.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.3053, allocations: 47.06 kB / 444.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00074/0.306, allocations: 280 kB / 445.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.019e-05/0.3061, allocations: 16.38 kB / 445.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003929/0.31, allocations: 2.853 MB / 447.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.31, allocations: 1.953 kB / 447.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.3117, allocations: 0.7997 MB / 448.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.3119, allocations: 145.7 kB / 448.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.681e-05/0.3119, allocations: 18.05 kB / 448.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.3122, allocations: 20.61 kB / 448.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.3124, allocations: 63.45 kB / 449 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.3125, allocations: 26.23 kB / 449 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002723/0.3127, allocations: 184.2 kB / 449.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3127, allocations: 3.938 kB / 449.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007024/0.3134, allocations: 139.2 kB / 449.3 MB, free: 14.21 MB / 366.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.003451/0.3169, allocations: 1.649 MB / 451 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.3183, allocations: 0.5908 MB / 451.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3183, allocations: 0 / 451.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008657/0.3192, allocations: 415.2 kB / 452 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004852/0.3197, allocations: 45.48 kB / 452 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006025/0.3257, allocations: 3.409 MB / 455.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000556/0.3263, allocations: 0.7792 MB / 456.2 MB, free: 9.828 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002685/0.3265, allocations: 79.23 kB / 456.3 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002107/0.3267, allocations: 89.52 kB / 456.4 MB, free: 9.75 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3267, allocations: 0 / 456.4 MB, free: 9.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0463/0.373, allocations: 10.62 MB / 467 MB, free: 5.391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.2, allocations: 3.938 kB / 467 MB, free: 5.387 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.301293017109856]