Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001569/0.001569, allocations: 109.4 kB / 17.72 MB, free: 5.301 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.001724/0.001724, allocations: 196.2 kB / 18.67 MB, free: 4.363 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.383/1.383, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001147/0.001147, allocations: 55.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09183/0.09299, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004005/0.09704, allocations: 2.802 MB / 377.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.09879, allocations: 0.9435 MB / 378.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.09897, allocations: 4 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.09927, allocations: 71.38 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.09952, allocations: 103.1 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.1, allocations: 211.6 kB / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005228/0.1005, allocations: 0.5735 MB / 379.3 MB, free: 348 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.1008, allocations: 110.7 kB / 379.4 MB, free: 236 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1999/0.3006, allocations: 250.1 kB / 379.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005379/0.3012, allocations: 273.6 kB / 380 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.3014, allocations: 46.53 kB / 380 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.3016, allocations: 92.83 kB / 380.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.3017, allocations: 114.8 kB / 380.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.302, allocations: 218.9 kB / 380.4 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007474/0.3027, allocations: 0.5328 MB / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.3027, allocations: 0 / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3028, allocations: 0 / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.3028, allocations: 2.406 kB / 381 MB, free: 9.164 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001349/0.3041, allocations: 0.7459 MB / 381.7 MB, free: 8.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.3042, allocations: 10.7 kB / 381.7 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001208/0.3043, allocations: 80.38 kB / 381.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.116e-05/0.3044, allocations: 47.06 kB / 381.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000366/0.3048, allocations: 312.4 kB / 382.1 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.317e-05/0.3048, allocations: 30.25 kB / 382.2 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.854e-05/0.3049, allocations: 39.22 kB / 382.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.306, allocations: 450.6 kB / 382.7 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.306, allocations: 1.156 kB / 382.7 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.3061, allocations: 13.81 kB / 382.7 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.3061, allocations: 13.06 kB / 382.7 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.3073, allocations: 460.7 kB / 383.1 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.3099, allocations: 1.267 MB / 384.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.311, allocations: 368.5 kB / 384.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000627/0.3116, allocations: 252 kB / 385 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.987e-05/0.3117, allocations: 6.766 kB / 385 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.3117, allocations: 39.09 kB / 385 MB, free: 7.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.422e-06/0.3117, allocations: 4 kB / 385.1 MB, free: 7.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005971/0.3177, allocations: 2.269 MB / 387.3 MB, free: 6.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.3177, allocations: 57.91 kB / 387.4 MB, free: 6.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.318, allocations: 253.4 kB / 387.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.007e-05/0.3181, allocations: 40.5 kB / 387.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.573e-05/0.3182, allocations: 174.5 kB / 387.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.3183, allocations: 179.6 kB / 388 MB, free: 6.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.3185, allocations: 102 kB / 388.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.716e-05/0.3186, allocations: 345.1 kB / 388.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.3191, allocations: 233 kB / 388.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005564/0.3197, allocations: 297.8 kB / 389 MB, free: 5.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008984/0.3206, allocations: 422.8 kB / 389.4 MB, free: 5.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.3206, allocations: 0 / 389.4 MB, free: 5.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001671/0.3223, allocations: 0.7629 MB / 390.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3223, allocations: 6.188 kB / 390.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.3223, allocations: 5.656 kB / 390.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.3235, allocations: 0.5472 MB / 390.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.3238, allocations: 67.47 kB / 390.8 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002243/0.326, allocations: 3.668 MB / 394.4 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.3266, allocations: 77.55 kB / 394.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.3266, allocations: 17.56 kB / 394.5 MB, free: 1.363 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.000202/0.3268, allocations: 168.7 kB / 394.7 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.352e-05/0.3269, allocations: 37.91 kB / 394.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.3285, allocations: 0.7225 MB / 395.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3285, allocations: 8.938 kB / 395.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3286, allocations: 1.312 kB / 395.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3286, allocations: 2.531 kB / 395.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002225/0.3308, allocations: 1.263 MB / 396.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3308, allocations: 8.781 kB / 396.7 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.3311, allocations: 60.73 kB / 396.8 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009881/0.3321, allocations: 0.5251 MB / 397.3 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.987e-05/0.3321, allocations: 20.3 kB / 397.3 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002895/0.335, allocations: 3.625 MB / 401 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3351, allocations: 0 / 401 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.3371, allocations: 1.04 MB / 402 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.3374, allocations: 164.8 kB / 402.2 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.01e-05/0.3374, allocations: 18.19 kB / 402.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004795/0.3379, allocations: 71.38 kB / 402.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.3382, allocations: 92.64 kB / 402.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/0.3382, allocations: 19.91 kB / 402.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.3384, allocations: 179.2 kB / 402.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3384, allocations: 0 / 402.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005852/0.339, allocations: 124 kB / 402.7 MB, free: 11.84 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002514/0.3415, allocations: 1.611 MB / 404.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.3433, allocations: 0.8104 MB / 405.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3433, allocations: 1.031 kB / 405.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000958/0.3442, allocations: 0.5468 MB / 405.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005107/0.3448, allocations: 60.52 kB / 405.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007217/0.352, allocations: 4.359 MB / 410 MB, free: 7.504 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.3524, allocations: 0.8034 MB / 410.8 MB, free: 6.801 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00016/0.3526, allocations: 38.31 kB / 410.9 MB, free: 6.789 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.3528, allocations: 109.6 kB / 411 MB, free: 6.711 MB / 334.1 MB Notification: Performance of SimCode: time 2.084e-06/0.3528, allocations: 1.5 kB / 411 MB, free: 6.711 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03879/0.3916, allocations: 13.37 MB / 424.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.56, allocations: 4.609 kB / 424.4 MB, free: 11.96 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches