Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 67.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2939, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004756/0.2987, allocations: 2.952 MB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.3008, allocations: 1.044 MB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00022/0.301, allocations: 8 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003659/0.3015, allocations: 79.3 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.3019, allocations: 158.8 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003968/0.3023, allocations: 187.7 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006555/0.303, allocations: 0.593 MB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.3032, allocations: 122.7 kB / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003161/0.3035, allocations: 263.2 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000382/0.3039, allocations: 291 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.067e-05/0.304, allocations: 44 kB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.3042, allocations: 103.9 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.3044, allocations: 127.6 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002422/0.3046, allocations: 230.9 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007801/0.3054, allocations: 0.5866 MB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3055, allocations: 8 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3055, allocations: 3.938 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.3055, allocations: 0 / 415.5 MB, free: 10.71 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001582/0.3071, allocations: 0.7869 MB / 416.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.3071, allocations: 12.03 kB / 416.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001436/0.3073, allocations: 83.66 kB / 416.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.3074, allocations: 48.66 kB / 416.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005506/0.308, allocations: 318.7 kB / 416.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.815e-05/0.308, allocations: 29.38 kB / 416.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-05/0.3081, allocations: 44.38 kB / 416.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009029/0.309, allocations: 446.4 kB / 417.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.309, allocations: 7.891 kB / 417.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.3091, allocations: 19.94 kB / 417.3 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.3091, allocations: 8 kB / 417.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.3101, allocations: 447.7 kB / 417.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.3127, allocations: 1.297 MB / 419 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009837/0.3137, allocations: 404.3 kB / 419.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005016/0.3142, allocations: 253.6 kB / 419.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.626e-05/0.3142, allocations: 8.375 kB / 419.7 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.3143, allocations: 39 kB / 419.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.074e-06/0.3143, allocations: 0 / 419.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.00562/0.3199, allocations: 2.268 MB / 422 MB, free: 3.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.32, allocations: 55.84 kB / 422.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.3203, allocations: 262.7 kB / 422.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.588e-05/0.3204, allocations: 49.69 kB / 422.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.3205, allocations: 176.9 kB / 422.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.3207, allocations: 194.5 kB / 422.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.3209, allocations: 98.19 kB / 422.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.3211, allocations: 342.8 kB / 423.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005075/0.3216, allocations: 225 kB / 423.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005439/0.3222, allocations: 291.1 kB / 423.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.323, allocations: 391.8 kB / 424 MB, free: 1.781 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.323, allocations: 4 kB / 424 MB, free: 1.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001647/0.3247, allocations: 0.7393 MB / 424.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3247, allocations: 4 kB / 424.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3247, allocations: 0 / 424.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.3259, allocations: 434.3 kB / 425.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.3261, allocations: 67.91 kB / 425.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/0.3298, allocations: 3.652 MB / 428.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005399/0.3303, allocations: 75.92 kB / 429 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.3304, allocations: 20 kB / 429 MB, free: 12.47 MB / 350.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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.000286/0.3307, allocations: 181.6 kB / 429.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.3308, allocations: 39.7 kB / 429.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/0.3324, allocations: 0.7201 MB / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3325, allocations: 8 kB / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3325, allocations: 0 / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3325, allocations: 3.984 kB / 430 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002505/0.335, allocations: 1.29 MB / 431.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.335, allocations: 0 / 431.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.3353, allocations: 63.91 kB / 431.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009964/0.3363, allocations: 406.2 kB / 431.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-05/0.3364, allocations: 19.92 kB / 431.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003388/0.3398, allocations: 3.61 MB / 435.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3398, allocations: 0 / 435.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.342, allocations: 1.029 MB / 436.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002457/0.3422, allocations: 160.8 kB / 436.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.152e-05/0.3423, allocations: 23.94 kB / 436.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004632/0.3428, allocations: 71.91 kB / 436.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/0.343, allocations: 92.41 kB / 436.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-05/0.343, allocations: 23.97 kB / 436.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.3433, allocations: 194 kB / 436.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3433, allocations: 0 / 436.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005197/0.3438, allocations: 120 kB / 437 MB, free: 3.996 MB / 350.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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003659/0.3475, allocations: 1.846 MB / 438.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.3492, allocations: 0.7965 MB / 439.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3492, allocations: 0 / 439.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009568/0.3502, allocations: 0.5347 MB / 440.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005682/0.3508, allocations: 75.47 kB / 440.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007478/0.3583, allocations: 4.309 MB / 444.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00051/0.3588, allocations: 0.8162 MB / 445.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001574/0.359, allocations: 39.27 kB / 445.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.3592, allocations: 119.4 kB / 445.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3592, allocations: 3.938 kB / 445.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07087/0.4301, allocations: 13.7 MB / 459.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.32, allocations: 11.8 kB / 459.3 MB, free: 13.81 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches