Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 111.7 kB / 17.73 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 188.2 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09391, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003845/0.09779, allocations: 2.346 MB / 377 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.09952, allocations: 0.9565 MB / 377.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.09968, allocations: 4 kB / 377.9 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.09992, allocations: 51.58 kB / 378 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004944/0.1004, allocations: 131.2 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.1008, allocations: 163.7 kB / 378.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004732/0.1013, allocations: 438.7 kB / 378.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.1015, allocations: 60.69 kB / 378.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.1017, allocations: 179.5 kB / 378.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003077/0.102, allocations: 223.3 kB / 379.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.576e-05/0.1021, allocations: 32 kB / 379.2 MB, free: 496 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.1023, allocations: 123.8 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.1025, allocations: 99.7 kB / 379.4 MB, free: 272 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.1027, allocations: 163.2 kB / 379.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.179/0.2816, allocations: 440.8 kB / 380 MB, free: 9.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.2817, allocations: 1.938 kB / 380 MB, free: 9.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2817, allocations: 0 / 380 MB, free: 9.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.2817, allocations: 1.406 kB / 380 MB, free: 9.809 MB / 318.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.001114/0.2828, allocations: 0.6403 MB / 380.6 MB, free: 9.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2829, allocations: 10.16 kB / 380.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.28e-05/0.2829, allocations: 64.06 kB / 380.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003135/0.2833, allocations: 52.75 kB / 380.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/0.2838, allocations: 311.3 kB / 381.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.2839, allocations: 85.52 kB / 381.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.284, allocations: 30.11 kB / 381.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007056/0.2847, allocations: 382.6 kB / 381.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.2847, allocations: 2.781 kB / 381.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.2848, allocations: 8.812 kB / 381.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2848, allocations: 6.188 kB / 381.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009328/0.2857, allocations: 420.7 kB / 382 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.2878, allocations: 1.238 MB / 383.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007115/0.2886, allocations: 357.5 kB / 383.6 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003809/0.289, allocations: 189.5 kB / 383.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.289, allocations: 4.547 kB / 383.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.289, allocations: 41.28 kB / 383.8 MB, free: 8.336 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.515e-06/0.289, allocations: 0 / 383.8 MB, free: 8.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004734/0.2938, allocations: 1.928 MB / 385.7 MB, free: 7.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.2939, allocations: 85.77 kB / 385.8 MB, free: 7.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.2942, allocations: 245.1 kB / 386.1 MB, free: 7.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.2942, allocations: 33.2 kB / 386.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.414e-05/0.2943, allocations: 140.1 kB / 386.2 MB, free: 7.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.634e-05/0.2944, allocations: 160.3 kB / 386.4 MB, free: 7.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.2945, allocations: 81.5 kB / 386.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.357e-05/0.2946, allocations: 340.1 kB / 386.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.295, allocations: 169.8 kB / 387 MB, free: 6.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003986/0.2954, allocations: 228.3 kB / 387.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006575/0.2961, allocations: 350.5 kB / 387.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2961, allocations: 1.25 kB / 387.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001159/0.2973, allocations: 0.5549 MB / 388.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.2973, allocations: 6.438 kB / 388.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2973, allocations: 1.891 kB / 388.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007684/0.2981, allocations: 252.4 kB / 388.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.2983, allocations: 50.34 kB / 388.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003514/0.3019, allocations: 2.889 MB / 391.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.3021, allocations: 31.94 kB / 391.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.302e-05/0.3022, allocations: 18.17 kB / 391.3 MB, free: 3.934 MB / 318.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.0001654/0.3024, allocations: 162 kB / 391.5 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.771e-05/0.3024, allocations: 28.61 kB / 391.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.403e-05/0.3025, allocations: 43.14 kB / 391.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3025, allocations: 4.312 kB / 391.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3026, allocations: 0 / 391.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.577e-06/0.3026, allocations: 8.234 kB / 391.6 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001753/0.3043, allocations: 1.087 MB / 392.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3043, allocations: 0 / 392.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.3046, allocations: 47.02 kB / 392.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000639/0.3052, allocations: 233.8 kB / 392.9 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/0.3053, allocations: 21.89 kB / 392.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003159/0.3084, allocations: 2.844 MB / 395.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.654e-06/0.3084, allocations: 0.9375 kB / 395.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.3099, allocations: 0.8238 MB / 396.6 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.31, allocations: 139.4 kB / 396.8 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.3101, allocations: 11.31 kB / 396.8 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002482/0.3104, allocations: 27.92 kB / 396.8 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/0.3105, allocations: 61.52 kB / 396.9 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.3106, allocations: 10.78 kB / 396.9 MB, free: 364 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002018/0.3108, allocations: 180.2 kB / 397 MB, free: 260 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3108, allocations: 1.969 kB / 397 MB, free: 260 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006536/0.3115, allocations: 141.9 kB / 397.2 MB, free: 236 kB / 318.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.002206/0.3137, allocations: 1.427 MB / 398.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.3151, allocations: 0.6348 MB / 399.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3151, allocations: 0 / 399.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007864/0.3159, allocations: 435.1 kB / 399.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.3163, allocations: 39.69 kB / 399.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005854/0.3222, allocations: 3.461 MB / 403.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.3227, allocations: 0.7782 MB / 403.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002061/0.3229, allocations: 55.52 kB / 404 MB, free: 11.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.3231, allocations: 88.86 kB / 404.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3231, allocations: 3.188 kB / 404.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04529/0.3684, allocations: 9.866 MB / 414 MB, free: 7.055 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.73, allocations: 3.953 kB / 414 MB, free: 7.051 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches