Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001647/0.001647, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001981/0.001981, allocations: 207.3 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 230.5 MB / 257.4 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 67.89 kB / 377.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2574, allocations: 53.4 MB / 431.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004253/0.2617, allocations: 2.411 MB / 433.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002225/0.2639, allocations: 1.088 MB / 434.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.2641, allocations: 7.938 kB / 434.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.2644, allocations: 59.44 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005481/0.2649, allocations: 182.5 kB / 434.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.2654, allocations: 191.6 kB / 435.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.266, allocations: 0.5102 MB / 435.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.2661, allocations: 61.12 kB / 435.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003897/0.2665, allocations: 243.3 kB / 435.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003472/0.2669, allocations: 251.2 kB / 436.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.987e-05/0.267, allocations: 40 kB / 436.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.2672, allocations: 139.9 kB / 436.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.2674, allocations: 115.7 kB / 436.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.2676, allocations: 175.3 kB / 436.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006835/0.2682, allocations: 0.5543 MB / 437.1 MB, free: 420 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2683, allocations: 0 / 437.1 MB, free: 420 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2683, allocations: 0 / 437.1 MB, free: 420 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.2683, allocations: 0 / 437.1 MB, free: 420 kB / 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.001378/0.2696, allocations: 0.6375 MB / 437.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/0.2697, allocations: 11.98 kB / 437.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.468e-05/0.2698, allocations: 70.72 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003945/0.2702, allocations: 64.67 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005757/0.2708, allocations: 258.6 kB / 438.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.2709, allocations: 140 kB / 438.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.271, allocations: 36.33 kB / 438.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008815/0.2719, allocations: 454.5 kB / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.2719, allocations: 0 / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.272, allocations: 16 kB / 438.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.272, allocations: 8 kB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.273, allocations: 466.2 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.2749, allocations: 0.8463 MB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009013/0.2758, allocations: 376.1 kB / 440.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004763/0.2762, allocations: 206.1 kB / 440.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.5e-05/0.2763, allocations: 12.42 kB / 440.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.2763, allocations: 39 kB / 440.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.983e-06/0.2763, allocations: 0 / 440.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005478/0.2818, allocations: 1.921 MB / 442.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.2819, allocations: 81.61 kB / 442.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003825/0.2823, allocations: 272.9 kB / 443 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.2823, allocations: 37.7 kB / 443 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.2824, allocations: 137.2 kB / 443.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.2826, allocations: 194.3 kB / 443.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.2827, allocations: 94.16 kB / 443.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2829, allocations: 338.8 kB / 443.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.2834, allocations: 200.8 kB / 444 MB, free: 9.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005149/0.2839, allocations: 265.7 kB / 444.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008645/0.2848, allocations: 383.3 kB / 444.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2848, allocations: 0 / 444.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001378/0.2861, allocations: 0.6004 MB / 445.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.2862, allocations: 11.94 kB / 445.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.2862, allocations: 0 / 445.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008506/0.287, allocations: 302.6 kB / 445.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003243/0.2873, allocations: 67.89 kB / 445.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004149/0.2915, allocations: 2.798 MB / 448.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003316/0.2918, allocations: 35.97 kB / 448.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.2919, allocations: 20 kB / 448.4 MB, free: 4.688 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.0002267/0.2921, allocations: 162 kB / 448.6 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.228e-05/0.2922, allocations: 31.81 kB / 448.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.2923, allocations: 55.61 kB / 448.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2923, allocations: 4 kB / 448.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2923, allocations: 0 / 448.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.2923, allocations: 7.922 kB / 448.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.2947, allocations: 1.168 MB / 449.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2947, allocations: 0 / 449.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.295, allocations: 75.88 kB / 449.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/0.2958, allocations: 288.5 kB / 450.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-05/0.2958, allocations: 19.98 kB / 450.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003935/0.2997, allocations: 2.704 MB / 452.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2997, allocations: 0 / 452.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.3017, allocations: 0.9409 MB / 453.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/0.3019, allocations: 79.86 kB / 453.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.272e-05/0.302, allocations: 19.88 kB / 454 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003106/0.3023, allocations: 35.91 kB / 454 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.3025, allocations: 72.28 kB / 454.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.839e-05/0.3025, allocations: 19.98 kB / 454.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.3028, allocations: 204.5 kB / 454.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3028, allocations: 0 / 454.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006063/0.3034, allocations: 151.9 kB / 454.4 MB, free: 14.47 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.003702/0.3071, allocations: 1.8 MB / 456.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.3086, allocations: 0.6557 MB / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3086, allocations: 4 kB / 456.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008964/0.3095, allocations: 460.1 kB / 457.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004676/0.3099, allocations: 47.06 kB / 457.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006768/0.3167, allocations: 3.804 MB / 461.2 MB, free: 7.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.3169, allocations: 194.8 kB / 461.4 MB, free: 7.473 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003033/0.3172, allocations: 78.91 kB / 461.5 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/0.3174, allocations: 115.4 kB / 461.6 MB, free: 7.281 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3174, allocations: 0 / 461.6 MB, free: 7.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04781/0.3652, allocations: 11.58 MB / 473.2 MB, free: 11.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.36, allocations: 4.562 kB / 473.2 MB, free: 11.76 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_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.927697363309562]