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.001573/0.001573, allocations: 114.5 kB / 17.73 MB, free: 5.297 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.00163/0.00163, allocations: 187 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.461/1.461, allocations: 205.1 MB / 224.5 MB, free: 12.18 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.001883/0.001883, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.09579, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004573/0.1004, allocations: 2.802 MB / 377.4 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.1024, allocations: 0.9396 MB / 378.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003328/0.1027, allocations: 12 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.1031, allocations: 63.38 kB / 378.5 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004042/0.1035, allocations: 99.11 kB / 378.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006624/0.1042, allocations: 215.6 kB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008201/0.105, allocations: 0.5735 MB / 379.3 MB, free: 356 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.1053, allocations: 110.7 kB / 379.4 MB, free: 244 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1877/0.2931, allocations: 244.8 kB / 379.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006623/0.2938, allocations: 272.9 kB / 380 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002244/0.294, allocations: 45.53 kB / 380 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003963/0.2944, allocations: 97.08 kB / 380.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.2946, allocations: 111.2 kB / 380.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004195/0.2951, allocations: 220.7 kB / 380.4 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.2962, allocations: 0.5348 MB / 380.9 MB, free: 9.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2963, allocations: 0.75 kB / 381 MB, free: 9.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.2963, allocations: 0 / 381 MB, free: 9.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.511e-05/0.2963, allocations: 2.625 kB / 381 MB, free: 9.168 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.002155/0.2985, allocations: 0.7451 MB / 381.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.2985, allocations: 9.656 kB / 381.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002097/0.2988, allocations: 80.69 kB / 381.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.2989, allocations: 45.72 kB / 381.8 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005787/0.2995, allocations: 310.9 kB / 382.1 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.2996, allocations: 27.92 kB / 382.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.2997, allocations: 44.14 kB / 382.2 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.3009, allocations: 449.4 kB / 382.6 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.3009, allocations: 2.078 kB / 382.6 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.969e-05/0.301, allocations: 14.25 kB / 382.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.301, allocations: 8.156 kB / 382.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.3022, allocations: 464.5 kB / 383.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.3048, allocations: 1.272 MB / 384.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008895/0.3057, allocations: 367.4 kB / 384.8 MB, free: 7.863 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000476/0.3062, allocations: 253.6 kB / 385 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.3063, allocations: 4.844 kB / 385 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.3063, allocations: 37.73 kB / 385 MB, free: 7.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.254e-06/0.3063, allocations: 1.406 kB / 385 MB, free: 7.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005442/0.3118, allocations: 2.272 MB / 387.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.3118, allocations: 56.38 kB / 387.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.3121, allocations: 254 kB / 387.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.011e-05/0.3122, allocations: 43.58 kB / 387.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.3123, allocations: 173.9 kB / 387.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.3125, allocations: 177.1 kB / 388 MB, free: 6.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.3127, allocations: 98.33 kB / 388.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.091e-05/0.3128, allocations: 349 kB / 388.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005155/0.3133, allocations: 231.6 kB / 388.7 MB, free: 5.648 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005695/0.3139, allocations: 302.7 kB / 389 MB, free: 5.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008089/0.3147, allocations: 415.7 kB / 389.4 MB, free: 5.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3147, allocations: 0.9062 kB / 389.4 MB, free: 5.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001614/0.3163, allocations: 0.7642 MB / 390.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3163, allocations: 7.156 kB / 390.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3164, allocations: 1.156 kB / 390.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/0.3175, allocations: 0.553 MB / 390.7 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.3178, allocations: 75.56 kB / 390.8 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002379/0.3202, allocations: 3.658 MB / 394.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005498/0.3208, allocations: 74.89 kB / 394.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.645e-05/0.3209, allocations: 19.33 kB / 394.5 MB, free: 1.367 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.0002345/0.3211, allocations: 167.9 kB / 394.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.3212, allocations: 44.78 kB / 394.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.3229, allocations: 0.7128 MB / 395.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.3229, allocations: 13.47 kB / 395.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.3229, allocations: 1.688 kB / 395.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3229, allocations: 7.516 kB / 395.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.3253, allocations: 1.267 MB / 396.7 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3253, allocations: 7.938 kB / 396.7 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.3256, allocations: 55.88 kB / 396.8 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.3266, allocations: 0.5296 MB / 397.3 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-05/0.3267, allocations: 19.58 kB / 397.3 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003621/0.3303, allocations: 3.62 MB / 401 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3304, allocations: 0 / 401 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.3327, allocations: 1.038 MB / 402 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002715/0.333, allocations: 163.2 kB / 402.2 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.3331, allocations: 23.66 kB / 402.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005084/0.3336, allocations: 69.12 kB / 402.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000248/0.3338, allocations: 94.27 kB / 402.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.675e-05/0.3339, allocations: 21 kB / 402.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.3341, allocations: 178.1 kB / 402.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3341, allocations: 1.375 kB / 402.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006159/0.3348, allocations: 122.8 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.002855/0.3376, allocations: 1.614 MB / 404.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.3395, allocations: 0.8091 MB / 405.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3395, allocations: 0 / 405.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.3405, allocations: 0.545 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.0005593/0.3411, allocations: 55.45 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.008426/0.3495, allocations: 4.365 MB / 410 MB, free: 7.504 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005658/0.3501, allocations: 0.8038 MB / 410.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.3503, allocations: 33.41 kB / 410.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.3505, allocations: 113.9 kB / 411 MB, free: 6.715 MB / 334.1 MB Notification: Performance of SimCode: time 2.845e-06/0.3505, allocations: 0 / 411 MB, free: 6.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05411/0.4047, allocations: 13.36 MB / 424.3 MB, free: 12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.29, allocations: 8.672 kB / 424.4 MB, free: 11.99 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