Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.001128/0.001128, allocations: 114.5 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.001119/0.001119, allocations: 187 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.302/1.302, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001361/0.001362, allocations: 51.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09525, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004264/0.09956, allocations: 2.723 MB / 377.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.1017, allocations: 1.132 MB / 378.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003194/0.1021, allocations: 11.94 kB / 378.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.1025, allocations: 75.34 kB / 378.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007828/0.1033, allocations: 190.9 kB / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005846/0.1039, allocations: 243.5 kB / 379 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007992/0.1047, allocations: 0.643 MB / 379.6 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.182/0.2867, allocations: 125.3 kB / 379.8 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008066/0.2876, allocations: 294.8 kB / 380.1 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004459/0.288, allocations: 340.5 kB / 380.4 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.897e-05/0.2881, allocations: 51.97 kB / 380.4 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003345/0.2885, allocations: 138.5 kB / 380.6 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001919/0.2887, allocations: 156.3 kB / 380.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.2889, allocations: 246.9 kB / 381 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.29, allocations: 0.6434 MB / 381.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.29, allocations: 0 / 381.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.29, allocations: 2.562 kB / 381.6 MB, free: 9.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.699e-06/0.29, allocations: 0 / 381.6 MB, free: 9.098 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001766/0.2918, allocations: 0.8091 MB / 382.4 MB, free: 8.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.2918, allocations: 14.48 kB / 382.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.292, allocations: 77.97 kB / 382.5 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000381/0.2924, allocations: 75.86 kB / 382.6 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006724/0.293, allocations: 362.3 kB / 382.9 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.2932, allocations: 101.1 kB / 383 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.674e-05/0.2933, allocations: 43.78 kB / 383.1 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.2944, allocations: 0.5599 MB / 383.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.2944, allocations: 2.406 kB / 383.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.569e-05/0.2945, allocations: 15.28 kB / 383.7 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.2945, allocations: 16.44 kB / 383.7 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.2958, allocations: 0.6368 MB / 384.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.2982, allocations: 1.291 MB / 385.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.2993, allocations: 0.5429 MB / 386.1 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006104/0.3, allocations: 322 kB / 386.5 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.3, allocations: 16.88 kB / 386.5 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.3001, allocations: 38.94 kB / 386.5 MB, free: 7.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 1.814e-06/0.3001, allocations: 0 / 386.5 MB, free: 7.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006712/0.3068, allocations: 2.877 MB / 389.4 MB, free: 5.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.3068, allocations: 88.64 kB / 389.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.3073, allocations: 332.2 kB / 389.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.725e-05/0.3073, allocations: 46.09 kB / 389.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.44e-05/0.3074, allocations: 162.3 kB / 390 MB, free: 5.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.3076, allocations: 236 kB / 390.2 MB, free: 5.367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.3078, allocations: 124.1 kB / 390.4 MB, free: 5.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.353e-05/0.3079, allocations: 349.7 kB / 390.7 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005881/0.3084, allocations: 287.4 kB / 391 MB, free: 4.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006114/0.3091, allocations: 352.3 kB / 391.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009976/0.3101, allocations: 0.5271 MB / 391.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3101, allocations: 0 / 391.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001733/0.3118, allocations: 0.8838 MB / 392.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3119, allocations: 10.03 kB / 392.7 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3119, allocations: 0.9062 kB / 392.7 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.313, allocations: 476.7 kB / 393.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004114/0.3134, allocations: 87.69 kB / 393.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.3147, allocations: 1.083 MB / 394.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000515/0.3152, allocations: 58.91 kB / 394.4 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.748e-05/0.3152, allocations: 26.19 kB / 394.5 MB, free: 3.301 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002353/0.3155, allocations: 186.5 kB / 394.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.3156, allocations: 46.64 kB / 394.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000131/0.3157, allocations: 66.59 kB / 394.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.3158, allocations: 11.05 kB / 394.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.3158, allocations: 1.156 kB / 394.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.3158, allocations: 3.516 kB / 394.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/0.319, allocations: 1.747 MB / 396.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.319, allocations: 1.375 kB / 396.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003838/0.3194, allocations: 81.28 kB / 396.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000973/0.3204, allocations: 453.5 kB / 397 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.407e-05/0.3204, allocations: 23.27 kB / 397.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.3215, allocations: 1.033 MB / 398.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3215, allocations: 2.328 kB / 398.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.324, allocations: 1.315 MB / 399.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002469/0.3242, allocations: 182 kB / 399.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.338e-05/0.3243, allocations: 15.12 kB / 399.6 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004451/0.3248, allocations: 53.83 kB / 399.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.325, allocations: 84.38 kB / 399.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/0.325, allocations: 27.47 kB / 399.8 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003026/0.3254, allocations: 243.8 kB / 400 MB, free: 500 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3254, allocations: 4.062 kB / 400 MB, free: 496 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006094/0.326, allocations: 147.5 kB / 400.2 MB, free: 472 kB / 318.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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002903/0.3289, allocations: 1.895 MB / 402 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3305, allocations: 0.7189 MB / 402.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3305, allocations: 1.469 kB / 402.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008506/0.3314, allocations: 392.2 kB / 403.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.3319, allocations: 52.5 kB / 403.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008196/0.3401, allocations: 4.994 MB / 408.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.3405, allocations: 0.824 MB / 409 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002481/0.3408, allocations: 66.27 kB / 409.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.341, allocations: 131.2 kB / 409.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.341, allocations: 0 / 409.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.3765, allocations: 13.78 MB / 423 MB, free: 14.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.2, allocations: 8 kB / 423 MB, free: 14.04 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_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_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches