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.00159/0.00159, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001407/0.001407, allocations: 180.2 kB / 23.7 MB, free: 4.414 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.406/1.406, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.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.001668/0.001668, allocations: 47.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2343, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003683/0.238, allocations: 2.243 MB / 424.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.2397, allocations: 0.8742 MB / 425.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.2398, allocations: 7.938 kB / 425.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.24, allocations: 43.58 kB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004501/0.2404, allocations: 135.3 kB / 425.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003453/0.2408, allocations: 179.7 kB / 426 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.2412, allocations: 410.8 kB / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.2414, allocations: 52.84 kB / 426.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.2416, allocations: 183.4 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.2419, allocations: 207.3 kB / 426.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.524e-05/0.242, allocations: 32 kB / 426.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002207/0.2422, allocations: 119.9 kB / 427 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.2423, allocations: 99.72 kB / 427.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.2425, allocations: 143.4 kB / 427.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005564/0.2431, allocations: 452 kB / 427.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2431, allocations: 0 / 427.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2431, allocations: 0 / 427.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.2431, allocations: 0 / 427.7 MB, free: 9.242 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.001176/0.2443, allocations: 0.5753 MB / 428.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2443, allocations: 8.031 kB / 428.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.125e-05/0.2444, allocations: 62.73 kB / 428.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003243/0.2447, allocations: 52.72 kB / 428.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005236/0.2452, allocations: 245.9 kB / 428.6 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.2454, allocations: 140 kB / 428.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.047e-05/0.2455, allocations: 28.38 kB / 428.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007778/0.2462, allocations: 412.2 kB / 429.2 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.2463, allocations: 7.953 kB / 429.2 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.2463, allocations: 16 kB / 429.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.2463, allocations: 8 kB / 429.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008763/0.2472, allocations: 410.2 kB / 429.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.2494, allocations: 1.111 MB / 430.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007213/0.2501, allocations: 326.5 kB / 431.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003931/0.2505, allocations: 168.8 kB / 431.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.2505, allocations: 7.938 kB / 431.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/0.2506, allocations: 38.56 kB / 431.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 3.046e-06/0.2506, allocations: 0 / 431.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.0049/0.2555, allocations: 1.692 MB / 433 MB, free: 3.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.2555, allocations: 84.86 kB / 433 MB, free: 3.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.2559, allocations: 243.1 kB / 433.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.507e-05/0.2559, allocations: 37.69 kB / 433.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.256, allocations: 140.8 kB / 433.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.2561, allocations: 154.8 kB / 433.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.2563, allocations: 94.02 kB / 433.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.2565, allocations: 334.8 kB / 434 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003901/0.2569, allocations: 168.8 kB / 434.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004545/0.2573, allocations: 255.6 kB / 434.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007372/0.2581, allocations: 343.1 kB / 434.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2581, allocations: 4.031 kB / 434.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001166/0.2592, allocations: 0.5396 MB / 435.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.2593, allocations: 11.98 kB / 435.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.2593, allocations: 0 / 435.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007499/0.26, allocations: 248.8 kB / 435.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.2603, allocations: 51.91 kB / 435.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004174/0.2644, allocations: 2.747 MB / 438.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.2647, allocations: 19.98 kB / 438.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.2648, allocations: 23.92 kB / 438.4 MB, free: 14.05 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.000218/0.265, allocations: 157.8 kB / 438.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.612e-05/0.2651, allocations: 27.81 kB / 438.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.2652, allocations: 42.98 kB / 438.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2652, allocations: 4 kB / 438.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2652, allocations: 0 / 438.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2652, allocations: 0 / 438.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.2671, allocations: 0.9956 MB / 439.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.2671, allocations: 0 / 439.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.2673, allocations: 47.91 kB / 439.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006793/0.268, allocations: 240.8 kB / 439.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.2681, allocations: 19.92 kB / 439.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003958/0.272, allocations: 2.699 MB / 442.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.272, allocations: 3.938 kB / 442.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.2736, allocations: 0.8042 MB / 443.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.2738, allocations: 67.78 kB / 443.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.2738, allocations: 7.938 kB / 443.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.2741, allocations: 27.97 kB / 443.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.2742, allocations: 63.88 kB / 443.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.2743, allocations: 15.98 kB / 443.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.2745, allocations: 180.3 kB / 443.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2745, allocations: 0 / 443.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005923/0.2751, allocations: 140 kB / 443.9 MB, free: 8.332 MB / 350.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.002183/0.2773, allocations: 1.411 MB / 445.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.2786, allocations: 0.6057 MB / 446 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2786, allocations: 0 / 446 MB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007246/0.2793, allocations: 417.9 kB / 446.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004066/0.2797, allocations: 42.45 kB / 446.4 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/0.2852, allocations: 3.431 MB / 449.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00019/0.2854, allocations: 167.8 kB / 450 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001853/0.2856, allocations: 54.95 kB / 450.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.2857, allocations: 91.39 kB / 450.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2857, allocations: 0 / 450.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0435/0.3292, allocations: 9.766 MB / 459.9 MB, free: 8.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.2, allocations: 11.02 kB / 459.9 MB, free: 8.352 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/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] "Error: Could not read variable gear.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.654408980160952]