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.001142/0.001142, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0009919/0.0009919, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8439/0.8439, allocations: 173.4 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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 1.403e-06/1.403e-06, allocations: 0 / 318.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125e-05/1.265e-05, allocations: 6.219 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002114/0.002127, allocations: 2.213 MB / 320.6 MB, free: 4.164 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.003128, allocations: 0.8856 MB / 321.5 MB, free: 3.273 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.132e-05/0.00322, allocations: 11.88 kB / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.003391, allocations: 51.52 kB / 321.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003454/0.003737, allocations: 151.2 kB / 321.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.003928, allocations: 175.5 kB / 321.9 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.00421, allocations: 426.6 kB / 322.3 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.004331, allocations: 52.88 kB / 322.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.004508, allocations: 251.5 kB / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.004694, allocations: 191.5 kB / 322.8 MB, free: 1.984 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.00473, allocations: 32 kB / 322.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.004867, allocations: 115.9 kB / 322.9 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.595e-05/0.004963, allocations: 95.7 kB / 323 MB, free: 1.746 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.944e-05/0.005042, allocations: 119.7 kB / 323.1 MB, free: 1.629 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.005429, allocations: 490.6 kB / 323.6 MB, free: 1.148 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.005431, allocations: 0 / 323.6 MB, free: 1.148 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.005432, allocations: 0 / 323.6 MB, free: 1.148 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.005437, allocations: 0 / 323.6 MB, free: 1.148 MB / 282.7 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.0007355/0.006172, allocations: 0.5629 MB / 324.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.006209, allocations: 12.92 kB / 324.2 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.006258, allocations: 62.72 kB / 324.3 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.006425, allocations: 48.73 kB / 324.3 MB, free: 440 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.00672, allocations: 249.2 kB / 324.6 MB, free: 164 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.081e-05/0.006811, allocations: 140 kB / 324.7 MB, free: 0 / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.883e-05/0.00686, allocations: 32.38 kB / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004275/0.007287, allocations: 408.8 kB / 325.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.0073, allocations: 4.125 kB / 325.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.007324, allocations: 15.94 kB / 325.1 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.00733, allocations: 4 kB / 325.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006642/0.007994, allocations: 410.3 kB / 325.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.009229, allocations: 1.099 MB / 326.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.009644, allocations: 338.5 kB / 327 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002093/0.009853, allocations: 168.8 kB / 327.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.009879, allocations: 4 kB / 327.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.009904, allocations: 39.28 kB / 327.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.413e-06/0.009905, allocations: 0 / 327.2 MB, free: 13.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002564/0.01247, allocations: 1.692 MB / 328.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.01251, allocations: 88.86 kB / 329 MB, free: 11.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.01268, allocations: 234.3 kB / 329.2 MB, free: 11.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.0127, allocations: 37.7 kB / 329.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.281e-05/0.01277, allocations: 140.9 kB / 329.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.229e-05/0.01284, allocations: 154.7 kB / 329.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.37e-05/0.01292, allocations: 90.08 kB / 329.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.544e-05/0.013, allocations: 334.8 kB / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.01321, allocations: 172.8 kB / 330.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.01344, allocations: 260.2 kB / 330.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003842/0.01382, allocations: 348.2 kB / 330.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.01382, allocations: 0 / 330.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006325/0.01446, allocations: 0.5489 MB / 331.2 MB, free: 9.176 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.01447, allocations: 4 kB / 331.2 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.01448, allocations: 0 / 331.2 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004258/0.0149, allocations: 249.4 kB / 331.5 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.01503, allocations: 51.91 kB / 331.5 MB, free: 8.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002476/0.01751, allocations: 2.746 MB / 334.3 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.01762, allocations: 23.98 kB / 334.3 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.01765, allocations: 19.98 kB / 334.3 MB, free: 5.977 MB / 298.7 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.0001076/0.01775, allocations: 149.7 kB / 334.5 MB, free: 5.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.765e-05/0.01779, allocations: 27.81 kB / 334.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.518e-05/0.01784, allocations: 50.98 kB / 334.6 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.01784, allocations: 4 kB / 334.6 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.01784, allocations: 4.062 kB / 334.6 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.01785, allocations: 3.984 kB / 334.6 MB, free: 5.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.0189, allocations: 0.9958 MB / 335.6 MB, free: 4.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.0189, allocations: 3.984 kB / 335.6 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.01902, allocations: 47.89 kB / 335.6 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003404/0.01936, allocations: 237 kB / 335.8 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.01938, allocations: 16 kB / 335.9 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002442/0.02182, allocations: 2.694 MB / 338.6 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.02182, allocations: 3.938 kB / 338.6 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008588/0.02268, allocations: 0.8081 MB / 339.4 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.348e-05/0.02276, allocations: 59.77 kB / 339.4 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.02279, allocations: 12 kB / 339.4 MB, free: 0.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.0229, allocations: 28.09 kB / 339.5 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/0.02315, allocations: 71.8 kB / 339.5 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.02317, allocations: 15.98 kB / 339.5 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001119/0.02328, allocations: 176.3 kB / 339.7 MB, free: 392 kB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02328, allocations: 0 / 339.7 MB, free: 392 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003342/0.02361, allocations: 139.9 kB / 339.9 MB, free: 252 kB / 298.7 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.001195/0.02481, allocations: 1.413 MB / 341.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007204/0.02553, allocations: 0.5983 MB / 341.9 MB, free: 14.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.02553, allocations: 4.062 kB / 341.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003775/0.02591, allocations: 425.9 kB / 342.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.02617, allocations: 39.05 kB / 342.3 MB, free: 13.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.02923, allocations: 3.4 MB / 345.7 MB, free: 10.2 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.02936, allocations: 175.8 kB / 345.9 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.02946, allocations: 58.95 kB / 346 MB, free: 9.949 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.533e-05/0.02956, allocations: 80.45 kB / 346 MB, free: 9.871 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02956, allocations: 0 / 346 MB, free: 9.871 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.05118, allocations: 9.924 MB / 356 MB, free: 128 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.642/7.693, allocations: 0 / 356 MB, free: 128 kB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/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: 9.286735859699547]