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.001467/0.001467, allocations: 120.7 kB / 17.79 MB, free: 5.137 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.001528/0.001528, allocations: 186.9 kB / 20.73 MB, free: 2.207 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.374/1.374, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.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.001439/0.001439, allocations: 47.91 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09246/0.0939, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003806/0.09771, allocations: 2.35 MB / 420.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.09953, allocations: 0.9208 MB / 421 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.09969, allocations: 4 kB / 421.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.09991, allocations: 47.58 kB / 421.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005191/0.1004, allocations: 147.2 kB / 421.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003915/0.1008, allocations: 162.9 kB / 421.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004809/0.1013, allocations: 426.7 kB / 421.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.1014, allocations: 44.73 kB / 421.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.1017, allocations: 183.5 kB / 422 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003037/0.102, allocations: 227.2 kB / 422.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.451e-05/0.102, allocations: 32 kB / 422.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.1022, allocations: 123.8 kB / 422.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.1024, allocations: 99.7 kB / 422.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.1025, allocations: 163.2 kB / 422.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000578/0.1031, allocations: 454.3 kB / 423.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1031, allocations: 0 / 423.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1031, allocations: 0 / 423.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1031, allocations: 4 kB / 423.1 MB, free: 7.234 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.001224/0.1044, allocations: 0.6389 MB / 423.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1044, allocations: 8.031 kB / 423.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.72e-05/0.1045, allocations: 74.66 kB / 423.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.1048, allocations: 48.73 kB / 423.9 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005425/0.1053, allocations: 308.3 kB / 424.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.1054, allocations: 88.52 kB / 424.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.3e-05/0.1055, allocations: 28.38 kB / 424.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006981/0.1062, allocations: 377.2 kB / 424.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.1062, allocations: 11.95 kB / 424.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.1063, allocations: 12 kB / 424.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.1063, allocations: 8 kB / 424.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008762/0.1072, allocations: 413.9 kB / 425.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.1093, allocations: 1.234 MB / 426.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.11, allocations: 338.5 kB / 426.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.1104, allocations: 168.8 kB / 426.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.1104, allocations: 7.938 kB / 426.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.1105, allocations: 34.56 kB / 426.9 MB, free: 3.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.505e-06/0.1105, allocations: 4 kB / 426.9 MB, free: 3.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004869/0.1154, allocations: 1.907 MB / 428.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/0.1154, allocations: 84.86 kB / 428.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.1157, allocations: 246.2 kB / 429.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.1158, allocations: 33.7 kB / 429.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.1159, allocations: 136.9 kB / 429.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.116, allocations: 158.8 kB / 429.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.1162, allocations: 82.11 kB / 429.5 MB, free: 476 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1163, allocations: 334.8 kB / 429.8 MB, free: 132 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/0.1167, allocations: 168.8 kB / 430 MB, free: 15.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/0.1171, allocations: 233.8 kB / 430.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006888/0.1178, allocations: 343.1 kB / 430.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1178, allocations: 8.031 kB / 430.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001149/0.119, allocations: 0.5395 MB / 431.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.119, allocations: 8 kB / 431.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.119, allocations: 0 / 431.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007488/0.1197, allocations: 257.4 kB / 431.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.12, allocations: 55.89 kB / 431.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/0.1241, allocations: 2.881 MB / 434.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.1244, allocations: 24.02 kB / 434.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.1244, allocations: 19.98 kB / 434.4 MB, free: 11.43 MB / 366.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.0002102/0.1247, allocations: 161.8 kB / 434.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-05/0.1247, allocations: 23.86 kB / 434.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1248, allocations: 46.98 kB / 434.6 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1248, allocations: 4 kB / 434.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1248, allocations: 0 / 434.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1248, allocations: 3.984 kB / 434.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.1268, allocations: 1.094 MB / 435.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1268, allocations: 4 kB / 435.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002232/0.127, allocations: 43.91 kB / 435.7 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000681/0.1277, allocations: 241.1 kB / 436 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.1277, allocations: 19.92 kB / 436 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003967/0.1317, allocations: 2.833 MB / 438.8 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1317, allocations: 0 / 438.8 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.1333, allocations: 0.812 MB / 439.6 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.1334, allocations: 136.9 kB / 439.8 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.908e-05/0.1335, allocations: 15.94 kB / 439.8 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.1337, allocations: 23.97 kB / 439.8 MB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.1339, allocations: 59.91 kB / 439.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.294e-05/0.1339, allocations: 15.98 kB / 439.9 MB, free: 5.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.1342, allocations: 184.3 kB / 440.1 MB, free: 5.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1342, allocations: 0 / 440.1 MB, free: 5.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005976/0.1348, allocations: 139.9 kB / 440.2 MB, free: 5.344 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.0021/0.1369, allocations: 1.421 MB / 441.6 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.1382, allocations: 0.6057 MB / 442.2 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1382, allocations: 0 / 442.2 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007636/0.139, allocations: 417.3 kB / 442.6 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.1394, allocations: 39.91 kB / 442.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1659/0.3053, allocations: 3.418 MB / 446.1 MB, free: 29.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.3055, allocations: 0.7797 MB / 446.9 MB, free: 28.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002047/0.3057, allocations: 58.44 kB / 446.9 MB, free: 28.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.3058, allocations: 84.7 kB / 447 MB, free: 28.65 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3058, allocations: 0 / 447 MB, free: 28.65 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04072/0.3466, allocations: 9.945 MB / 456.9 MB, free: 27.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.72, allocations: 4.359 kB / 457 MB, free: 27.55 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.147738077212125]