Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001631/0.001631, allocations: 111.1 kB / 20.44 MB, free: 1.18 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.002161/0.002161, allocations: 211.3 kB / 23.73 MB, free: 4.387 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.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 7.738 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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 51.84 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2411, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00423/0.2453, allocations: 2.404 MB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.2475, allocations: 1.096 MB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002048/0.2477, allocations: 4 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002981/0.248, allocations: 63.44 kB / 434.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000553/0.2485, allocations: 174.7 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004797/0.249, allocations: 183.6 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000623/0.2496, allocations: 0.5219 MB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.2498, allocations: 57.14 kB / 435.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004894/0.2503, allocations: 235.4 kB / 435.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004359/0.2507, allocations: 259.1 kB / 436 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.2508, allocations: 44 kB / 436.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003101/0.2511, allocations: 131.9 kB / 436.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.2513, allocations: 123.6 kB / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.2515, allocations: 167.3 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008222/0.2524, allocations: 0.5543 MB / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2524, allocations: 0 / 437.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2524, allocations: 3.938 kB / 437.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.355e-05/0.2524, allocations: 0 / 437.1 MB, free: 0.6367 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00171/0.2541, allocations: 0.6491 MB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.2542, allocations: 8.031 kB / 437.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.2543, allocations: 70.72 kB / 437.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004575/0.2547, allocations: 60.67 kB / 437.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006362/0.2554, allocations: 255.2 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/0.2556, allocations: 152 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-05/0.2556, allocations: 32.33 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009112/0.2566, allocations: 446.6 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.2566, allocations: 0 / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.2566, allocations: 12 kB / 438.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.2566, allocations: 8 kB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.2577, allocations: 474.2 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.2598, allocations: 0.8385 MB / 440 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000982/0.2608, allocations: 376.9 kB / 440.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/0.2613, allocations: 210 kB / 440.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.2613, allocations: 4.438 kB / 440.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.2614, allocations: 39 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.214e-06/0.2614, allocations: 0 / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005635/0.267, allocations: 1.925 MB / 442.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.2671, allocations: 81.61 kB / 442.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004086/0.2675, allocations: 272.9 kB / 442.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.2675, allocations: 37.7 kB / 443 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2676, allocations: 141.2 kB / 443.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.2678, allocations: 194.3 kB / 443.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.268, allocations: 90.17 kB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.2682, allocations: 346.8 kB / 443.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004773/0.2686, allocations: 188.9 kB / 443.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005245/0.2692, allocations: 265.7 kB / 444.2 MB, free: 9.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008984/0.2701, allocations: 387.3 kB / 444.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2701, allocations: 4 kB / 444.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001356/0.2714, allocations: 0.5927 MB / 445.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.2714, allocations: 11.94 kB / 445.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2715, allocations: 0 / 445.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008554/0.2723, allocations: 310.5 kB / 445.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.2726, allocations: 67.88 kB / 445.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004207/0.2768, allocations: 2.807 MB / 448.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.2772, allocations: 28 kB / 448.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.276e-05/0.2772, allocations: 19.98 kB / 448.4 MB, free: 4.914 MB / 350.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.000224/0.2774, allocations: 161.7 kB / 448.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.536e-05/0.2775, allocations: 35.75 kB / 448.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.2776, allocations: 47.67 kB / 448.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2776, allocations: 12 kB / 448.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2776, allocations: 0 / 448.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.2777, allocations: 3.984 kB / 448.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/0.2801, allocations: 1.175 MB / 449.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.2801, allocations: 3.984 kB / 449.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003424/0.2804, allocations: 75.97 kB / 449.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007337/0.2811, allocations: 288.5 kB / 450.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-05/0.2812, allocations: 15.98 kB / 450.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003907/0.2851, allocations: 2.704 MB / 452.9 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2851, allocations: 0 / 452.9 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002261/0.2873, allocations: 0.941 MB / 453.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.2876, allocations: 87.69 kB / 453.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.853e-05/0.2877, allocations: 15.94 kB / 453.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003273/0.288, allocations: 23.97 kB / 453.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.2882, allocations: 80.28 kB / 454 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-05/0.2883, allocations: 19.98 kB / 454 MB, free: 15.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003103/0.2886, allocations: 200.5 kB / 454.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2886, allocations: 4 kB / 454.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006263/0.2892, allocations: 151.9 kB / 454.4 MB, free: 14.68 MB / 366.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.005767/0.295, allocations: 1.806 MB / 456.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.2975, allocations: 0.6596 MB / 456.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.2975, allocations: 3.938 kB / 456.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.299, allocations: 456.1 kB / 457.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007953/0.2998, allocations: 50.09 kB / 457.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/0.3111, allocations: 3.803 MB / 461.2 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.3114, allocations: 190.8 kB / 461.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004954/0.3119, allocations: 74.91 kB / 461.4 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003617/0.3123, allocations: 111.4 kB / 461.5 MB, free: 7.527 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3123, allocations: 0 / 461.5 MB, free: 7.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06415/0.3764, allocations: 11.59 MB / 473.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.38, allocations: 2.75 kB / 473.1 MB, free: 12.02 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 15.918021236080676]