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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001107, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2784, allocations: 50.55 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00394/0.2824, allocations: 2.538 MB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.2844, allocations: 1.123 MB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.2846, allocations: 7.938 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.2849, allocations: 63.48 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004925/0.2854, allocations: 186.1 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.2859, allocations: 175.6 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005145/0.2864, allocations: 0.5141 MB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2866, allocations: 96.89 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003509/0.2869, allocations: 239.3 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003282/0.2873, allocations: 279.1 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.831e-05/0.2874, allocations: 40 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002454/0.2876, allocations: 139.9 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.2878, allocations: 119.7 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.288, allocations: 195.1 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000666/0.2886, allocations: 0.5517 MB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2887, allocations: 4 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2887, allocations: 0 / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.2887, allocations: 0 / 415 MB, free: 11.29 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.001384/0.2901, allocations: 0.7126 MB / 415.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2901, allocations: 8.031 kB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.257e-05/0.2902, allocations: 70.72 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000408/0.2906, allocations: 68.67 kB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005462/0.2912, allocations: 315.8 kB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.2913, allocations: 88.61 kB / 416.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.323e-05/0.2914, allocations: 36.33 kB / 416.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008174/0.2922, allocations: 428.8 kB / 416.7 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.2923, allocations: 4 kB / 416.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.222e-05/0.2923, allocations: 12 kB / 416.7 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.2923, allocations: 8 kB / 416.7 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.2933, allocations: 470.3 kB / 417.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.2951, allocations: 0.997 MB / 418.2 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008744/0.296, allocations: 400.5 kB / 418.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004821/0.2965, allocations: 234.2 kB / 418.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.965e-05/0.2966, allocations: 12.42 kB / 418.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.2966, allocations: 35 kB / 418.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.784e-06/0.2966, allocations: 0 / 418.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005453/0.3021, allocations: 2.16 MB / 421 MB, free: 4.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.3022, allocations: 81.67 kB / 421.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.3025, allocations: 273 kB / 421.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.652e-05/0.3026, allocations: 37.7 kB / 421.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3027, allocations: 141.2 kB / 421.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.3029, allocations: 186.4 kB / 421.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.303, allocations: 94.23 kB / 421.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3032, allocations: 342.8 kB / 422.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.3037, allocations: 193 kB / 422.3 MB, free: 3.602 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004989/0.3042, allocations: 244.6 kB / 422.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008711/0.3051, allocations: 384.3 kB / 422.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3051, allocations: 0 / 422.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001372/0.3065, allocations: 0.6058 MB / 423.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3065, allocations: 15.97 kB / 423.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3065, allocations: 0 / 423.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008061/0.3073, allocations: 302.6 kB / 423.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000318/0.3076, allocations: 71.88 kB / 423.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/0.3116, allocations: 2.941 MB / 426.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.312, allocations: 28 kB / 426.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/0.312, allocations: 24.06 kB / 426.9 MB, free: 14.84 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.0002205/0.3123, allocations: 173.6 kB / 427.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.543e-05/0.3124, allocations: 31.81 kB / 427.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.019e-05/0.3125, allocations: 51.55 kB / 427.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-06/0.3125, allocations: 8 kB / 427.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3125, allocations: 0 / 427.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3125, allocations: 0 / 427.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.3148, allocations: 1.293 MB / 428.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3148, allocations: 0 / 428.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/0.3151, allocations: 75.88 kB / 428.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007283/0.3159, allocations: 292.6 kB / 428.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.3159, allocations: 11.98 kB / 428.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003712/0.3196, allocations: 2.854 MB / 431.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3197, allocations: 0 / 431.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.3217, allocations: 0.9546 MB / 432.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002032/0.3219, allocations: 156.8 kB / 432.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.358e-05/0.322, allocations: 19.88 kB / 432.8 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.3223, allocations: 31.97 kB / 432.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.3225, allocations: 68.33 kB / 432.9 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-05/0.3225, allocations: 23.92 kB / 432.9 MB, free: 8.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002518/0.3228, allocations: 208.5 kB / 433.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.3228, allocations: 0 / 433.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006479/0.3234, allocations: 151.9 kB / 433.3 MB, free: 8.211 MB / 350.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.00315/0.3266, allocations: 1.787 MB / 435.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3281, allocations: 0.6878 MB / 435.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3282, allocations: 0 / 435.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009023/0.3291, allocations: 487.6 kB / 436.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.3296, allocations: 47.45 kB / 436.3 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006366/0.336, allocations: 3.828 MB / 440.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004614/0.3365, allocations: 0.8006 MB / 440.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002738/0.3368, allocations: 78.91 kB / 441 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/0.337, allocations: 115.4 kB / 441.1 MB, free: 328 kB / 350.1 MB Notification: Performance of SimCode: time 1.333e-06/0.337, allocations: 0 / 441.1 MB, free: 328 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06375/0.4008, allocations: 11.61 MB / 452.7 MB, free: 4.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.4, allocations: 12.5 kB / 452.7 MB, free: 4.859 MB / 366.1 MB (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "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! " Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w