Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001793/0.001793, allocations: 121.4 kB / 18.45 MB, free: 4.477 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.002024/0.002024, allocations: 189.2 kB / 21.39 MB, free: 1.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 207.6 MB / 231.8 MB, free: 4.027 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 55.92 kB / 342.2 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.089, allocations: 49.12 MB / 391.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003775/0.09278, allocations: 2.439 MB / 393.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.09451, allocations: 1.019 MB / 394.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.09462, allocations: 4 kB / 394.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.09483, allocations: 51.52 kB / 394.9 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004718/0.0953, allocations: 163.1 kB / 395 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.09562, allocations: 175.6 kB / 395.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004762/0.0961, allocations: 474.5 kB / 395.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.09626, allocations: 73.75 kB / 395.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.09653, allocations: 215.3 kB / 396 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003074/0.09683, allocations: 255.2 kB / 396.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.299e-05/0.0969, allocations: 39.94 kB / 396.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.0971, allocations: 123.8 kB / 396.4 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.09724, allocations: 111.7 kB / 396.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.09742, allocations: 183.1 kB / 396.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.09797, allocations: 498.1 kB / 397.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.09798, allocations: 4 kB / 397.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.09798, allocations: 0 / 397.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.09799, allocations: 0 / 397.1 MB, free: 2.926 MB / 318.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.001238/0.09923, allocations: 0.6739 MB / 397.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.09927, allocations: 12.03 kB / 397.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.236e-05/0.09935, allocations: 70.72 kB / 397.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.09964, allocations: 60.67 kB / 398 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005101/0.1002, allocations: 323.5 kB / 398.3 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.1003, allocations: 92.61 kB / 398.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.771e-05/0.1003, allocations: 32.38 kB / 398.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007598/0.1011, allocations: 416.8 kB / 398.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.1011, allocations: 3.938 kB / 398.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.1012, allocations: 16 kB / 398.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1012, allocations: 8 kB / 398.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009455/0.1021, allocations: 470.3 kB / 399.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.1038, allocations: 0.9815 MB / 400.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007873/0.1046, allocations: 372.5 kB / 400.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/0.105, allocations: 218.2 kB / 400.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.1051, allocations: 12.36 kB / 400.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.1051, allocations: 39 kB / 400.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.522e-06/0.1051, allocations: 0 / 400.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005069/0.1102, allocations: 2.152 MB / 403 MB, free: 12.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/0.1102, allocations: 85.67 kB / 403.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.1106, allocations: 263.1 kB / 403.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.1106, allocations: 33.7 kB / 403.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.1107, allocations: 141.2 kB / 403.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.1109, allocations: 190.4 kB / 403.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.111, allocations: 90.23 kB / 403.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1112, allocations: 338.8 kB / 404.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004222/0.1116, allocations: 193 kB / 404.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004672/0.1121, allocations: 244.6 kB / 404.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008069/0.1129, allocations: 400.3 kB / 405 MB, free: 10.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1129, allocations: 3.938 kB / 405 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001246/0.1141, allocations: 0.5979 MB / 405.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1141, allocations: 15.84 kB / 405.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1141, allocations: 0 / 405.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007261/0.1149, allocations: 269.8 kB / 405.9 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.1152, allocations: 67.89 kB / 405.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004103/0.1193, allocations: 2.933 MB / 408.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.1196, allocations: 28 kB / 408.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.1196, allocations: 19.98 kB / 408.9 MB, free: 6.621 MB / 334.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.0002211/0.1198, allocations: 165.8 kB / 409.1 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.777e-05/0.1199, allocations: 31.81 kB / 409.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.12, allocations: 47.3 kB / 409.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.12, allocations: 4 kB / 409.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.12, allocations: 0 / 409.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.12, allocations: 3.984 kB / 409.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.1223, allocations: 1.262 MB / 410.4 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1223, allocations: 0 / 410.4 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/0.1226, allocations: 67.89 kB / 410.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006317/0.1232, allocations: 240.7 kB / 410.7 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/0.1232, allocations: 15.98 kB / 410.7 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003731/0.127, allocations: 2.854 MB / 413.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.127, allocations: 0 / 413.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.1287, allocations: 0.9507 MB / 414.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.1289, allocations: 148.8 kB / 414.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.185e-05/0.129, allocations: 15.94 kB / 414.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.1292, allocations: 27.97 kB / 414.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.1294, allocations: 68.33 kB / 414.8 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.1294, allocations: 15.98 kB / 414.8 MB, free: 476 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002431/0.1297, allocations: 204.5 kB / 415 MB, free: 272 kB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1297, allocations: 0 / 415 MB, free: 272 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006101/0.1303, allocations: 156 kB / 415.2 MB, free: 116 kB / 334.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.002489/0.1328, allocations: 1.541 MB / 416.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001482/0.1343, allocations: 0.6721 MB / 417.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1343, allocations: 4 kB / 417.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007842/0.135, allocations: 455.6 kB / 417.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.1355, allocations: 44.36 kB / 417.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005934/0.1414, allocations: 3.821 MB / 421.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/0.1419, allocations: 0.8005 MB / 422.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002078/0.1421, allocations: 66.94 kB / 422.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.1422, allocations: 95.39 kB / 422.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of SimCode: time 1.103e-06/0.1422, allocations: 0 / 422.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03967/0.1819, allocations: 11.02 MB / 433.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.46, allocations: 11.92 kB / 433.7 MB, free: 13.34 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.913149398751557]