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.001794/0.001794, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002215/0.002215, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.425/1.425, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001481/0.001481, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2121, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003895/0.216, allocations: 2.342 MB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.2177, allocations: 1.014 MB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.2178, allocations: 4 kB / 434.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.2181, allocations: 59.52 kB / 434.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004006/0.2185, allocations: 155.3 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.2188, allocations: 163.7 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004954/0.2193, allocations: 478.7 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.2195, allocations: 44.91 kB / 435.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.2197, allocations: 207.5 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003107/0.22, allocations: 243.2 kB / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.422e-05/0.2201, allocations: 40 kB / 435.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002189/0.2203, allocations: 127.9 kB / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.2204, allocations: 119.6 kB / 436 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.2206, allocations: 147.4 kB / 436.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006076/0.2212, allocations: 0.4921 MB / 436.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2212, allocations: 0 / 436.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2212, allocations: 4 kB / 436.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.2212, allocations: 0 / 436.7 MB, free: 1.023 MB / 334.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.001144/0.2224, allocations: 0.5945 MB / 437.3 MB, free: 408 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2224, allocations: 8.031 kB / 437.3 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.137e-05/0.2225, allocations: 74.66 kB / 437.3 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003172/0.2228, allocations: 48.73 kB / 437.4 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.2233, allocations: 239.7 kB / 437.6 MB, free: 0 / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.2235, allocations: 140 kB / 437.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.539e-05/0.2235, allocations: 28.38 kB / 437.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008003/0.2243, allocations: 420.2 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.2243, allocations: 7.953 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/0.2244, allocations: 8 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.2244, allocations: 8 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008468/0.2252, allocations: 410.2 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00216/0.2274, allocations: 1.126 MB / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/0.2281, allocations: 328.2 kB / 440.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003756/0.2285, allocations: 168.7 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.2285, allocations: 8.719 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.2285, allocations: 34.56 kB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 3.376e-06/0.2285, allocations: 4 kB / 440.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004621/0.2332, allocations: 1.667 MB / 442 MB, free: 11.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/0.2332, allocations: 92.8 kB / 442 MB, free: 11.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.2335, allocations: 247.4 kB / 442.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.2336, allocations: 33.7 kB / 442.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.2337, allocations: 148.7 kB / 442.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.2338, allocations: 154.7 kB / 442.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.234, allocations: 90.06 kB / 442.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2341, allocations: 334.8 kB / 443 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.2345, allocations: 160.8 kB / 443.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/0.2349, allocations: 255.6 kB / 443.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007081/0.2356, allocations: 339.2 kB / 443.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2357, allocations: 0 / 443.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00114/0.2368, allocations: 0.5357 MB / 444.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2368, allocations: 8 kB / 444.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2368, allocations: 4.125 kB / 444.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007737/0.2376, allocations: 292.6 kB / 444.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/0.2378, allocations: 55.91 kB / 444.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003961/0.2418, allocations: 2.755 MB / 447.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.242, allocations: 28.05 kB / 447.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-05/0.2421, allocations: 19.98 kB / 447.5 MB, free: 5.766 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.0001894/0.2423, allocations: 157.7 kB / 447.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.436e-05/0.2424, allocations: 27.81 kB / 447.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.346e-05/0.2425, allocations: 42.94 kB / 447.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.2425, allocations: 7.938 kB / 447.7 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.2425, allocations: 4 kB / 447.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.2425, allocations: 3.984 kB / 447.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.2444, allocations: 1.015 MB / 448.7 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2444, allocations: 0 / 448.7 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.2446, allocations: 51.89 kB / 448.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007033/0.2454, allocations: 272.7 kB / 449 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.196e-05/0.2454, allocations: 15.92 kB / 449 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003762/0.2492, allocations: 2.716 MB / 451.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2492, allocations: 0 / 451.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.2507, allocations: 0.7922 MB / 452.6 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.2509, allocations: 71.81 kB / 452.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.02e-05/0.2509, allocations: 15.94 kB / 452.6 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.2512, allocations: 19.98 kB / 452.7 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.2513, allocations: 67.98 kB / 452.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.481e-05/0.2514, allocations: 23.98 kB / 452.7 MB, free: 288 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.2516, allocations: 180.5 kB / 452.9 MB, free: 108 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2516, allocations: 3.938 kB / 452.9 MB, free: 104 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005918/0.2522, allocations: 139.9 kB / 453.1 MB, free: 15.96 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.003215/0.2554, allocations: 1.676 MB / 454.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.2567, allocations: 0.5901 MB / 455.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2567, allocations: 0 / 455.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007434/0.2574, allocations: 421.9 kB / 455.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004145/0.2578, allocations: 42.64 kB / 455.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005444/0.2633, allocations: 3.406 MB / 459.2 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.2635, allocations: 167.8 kB / 459.4 MB, free: 9.637 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002134/0.2637, allocations: 74.84 kB / 459.4 MB, free: 9.566 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.2638, allocations: 95.39 kB / 459.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2638, allocations: 0 / 459.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05327/0.3171, allocations: 10.59 MB / 470.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.17, allocations: 0 / 470.1 MB, free: 14.96 MB / 382.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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] "Error: Could not read variable gear.mode in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.676453691994539]