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.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.001325/0.001325, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001442/0.001442, allocations: 216.1 kB / 24.47 MB, free: 3.777 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.341/1.341, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.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.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 55.05 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2256, allocations: 49.16 MB / 396.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002921/0.2285, allocations: 2.296 MB / 398.6 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.23, allocations: 0.9671 MB / 399.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.2301, allocations: 11.34 kB / 399.6 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.2303, allocations: 53.67 kB / 399.7 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000469/0.2307, allocations: 160.5 kB / 399.8 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.2311, allocations: 185.5 kB / 400 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003949/0.2315, allocations: 468.6 kB / 400.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.2316, allocations: 64.23 kB / 400.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.2319, allocations: 219.6 kB / 400.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002814/0.2321, allocations: 227.2 kB / 401 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.525e-05/0.2322, allocations: 37.09 kB / 401 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002134/0.2324, allocations: 120.5 kB / 401.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.2325, allocations: 120.8 kB / 401.2 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.2327, allocations: 158.1 kB / 401.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005032/0.2332, allocations: 0.4924 MB / 401.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2332, allocations: 1.156 kB / 401.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2332, allocations: 0 / 401.9 MB, free: 5.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2332, allocations: 0 / 401.9 MB, free: 5.699 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.00107/0.2343, allocations: 0.6057 MB / 402.5 MB, free: 5.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.2343, allocations: 13.52 kB / 402.5 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.973e-05/0.2344, allocations: 68.72 kB / 402.6 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002832/0.2346, allocations: 55.39 kB / 402.6 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004607/0.2351, allocations: 266.2 kB / 402.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.2352, allocations: 143.2 kB / 403 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.461e-05/0.2353, allocations: 36.94 kB / 403.1 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007663/0.2361, allocations: 443.1 kB / 403.5 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.2361, allocations: 9.031 kB / 403.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.675e-05/0.2361, allocations: 11.31 kB / 403.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2361, allocations: 8.094 kB / 403.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009822/0.2371, allocations: 461.4 kB / 404 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.2387, allocations: 0.8349 MB / 404.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000782/0.2395, allocations: 379.4 kB / 405.2 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/0.2399, allocations: 221 kB / 405.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.2399, allocations: 5.25 kB / 405.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.2399, allocations: 39 kB / 405.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.2399, allocations: 0 / 405.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.004694/0.2446, allocations: 1.928 MB / 407.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.2446, allocations: 85.08 kB / 407.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.2449, allocations: 261.8 kB / 407.7 MB, free: 2.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.245, allocations: 38.55 kB / 407.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.941e-05/0.245, allocations: 129.1 kB / 407.9 MB, free: 2.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.2451, allocations: 192.8 kB / 408 MB, free: 2.352 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.2453, allocations: 89.83 kB / 408.1 MB, free: 2.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.289e-05/0.2453, allocations: 339.9 kB / 408.5 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004133/0.2457, allocations: 196.8 kB / 408.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.2462, allocations: 278.6 kB / 408.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007481/0.2469, allocations: 391.4 kB / 409.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2469, allocations: 1.125 kB / 409.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001147/0.2481, allocations: 0.6013 MB / 409.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.2481, allocations: 10.84 kB / 409.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2481, allocations: 4.031 kB / 409.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007091/0.2488, allocations: 258.4 kB / 410.2 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.2491, allocations: 65.69 kB / 410.2 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003554/0.2526, allocations: 2.789 MB / 413 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.253, allocations: 33.22 kB / 413.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.651e-05/0.253, allocations: 21.33 kB / 413.1 MB, free: 15.01 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.0002161/0.2532, allocations: 165.7 kB / 413.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.2533, allocations: 30.23 kB / 413.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.2534, allocations: 53.16 kB / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2534, allocations: 6.125 kB / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.2534, allocations: 0 / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.2534, allocations: 3.984 kB / 413.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.2557, allocations: 1.162 MB / 414.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2557, allocations: 0 / 414.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003106/0.256, allocations: 63.14 kB / 414.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006495/0.2566, allocations: 235.8 kB / 414.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.2567, allocations: 20.33 kB / 414.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003824/0.2605, allocations: 2.714 MB / 417.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2605, allocations: 1.031 kB / 417.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.2623, allocations: 0.9356 MB / 418.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.2625, allocations: 84.44 kB / 418.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.423e-05/0.2625, allocations: 16.75 kB / 418.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.2628, allocations: 29.47 kB / 418.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.263, allocations: 73.7 kB / 418.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.263, allocations: 14.66 kB / 418.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.2633, allocations: 199 kB / 418.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2633, allocations: 0 / 418.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006287/0.2639, allocations: 157.2 kB / 419 MB, free: 10.86 MB / 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.002331/0.2662, allocations: 1.532 MB / 420.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.2677, allocations: 0.6742 MB / 421.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2677, allocations: 0 / 421.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008151/0.2685, allocations: 469.8 kB / 421.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.2689, allocations: 43.97 kB / 421.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006115/0.275, allocations: 3.804 MB / 425.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.2752, allocations: 194.7 kB / 425.7 MB, free: 4.926 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002116/0.2754, allocations: 66.88 kB / 425.8 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.2756, allocations: 99.39 kB / 425.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2756, allocations: 0 / 425.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.493/1.769, allocations: 10.86 MB / 436.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/14.88, allocations: 4 kB / 436.8 MB, free: 9.836 MB / 350.1 MB " [Timeout remaining time 645] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 17.400530172046274]