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.001472/0.001472, allocations: 118.3 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001841/0.001841, allocations: 201.2 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.00129, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2633, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004652/0.268, allocations: 2.94 MB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.2701, allocations: 1.048 MB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.2704, allocations: 7.938 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003664/0.2708, allocations: 75.31 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004215/0.2713, allocations: 162.9 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004065/0.2717, allocations: 187.7 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006304/0.2723, allocations: 0.6047 MB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.2726, allocations: 122.6 kB / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003066/0.2729, allocations: 263.2 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003488/0.2732, allocations: 287 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.601e-05/0.2733, allocations: 52 kB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.2735, allocations: 99.97 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.2737, allocations: 123.6 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.2739, allocations: 234.9 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006336/0.2745, allocations: 0.5905 MB / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2746, allocations: 0 / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2746, allocations: 0 / 415.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.2746, allocations: 0 / 415.5 MB, free: 10.72 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.001507/0.2761, allocations: 0.7791 MB / 416.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.2761, allocations: 12.03 kB / 416.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.2763, allocations: 83.66 kB / 416.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.2764, allocations: 52.66 kB / 416.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005189/0.2769, allocations: 322.7 kB / 416.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.277, allocations: 29.38 kB / 416.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.432e-05/0.2771, allocations: 44.3 kB / 416.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000874/0.278, allocations: 454.4 kB / 417.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.278, allocations: 3.953 kB / 417.3 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.665e-05/0.278, allocations: 16 kB / 417.3 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.2781, allocations: 12 kB / 417.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009638/0.279, allocations: 447.7 kB / 417.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.2813, allocations: 1.293 MB / 419 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008613/0.2822, allocations: 412.2 kB / 419.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.2827, allocations: 249.7 kB / 419.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.2828, allocations: 4.438 kB / 419.7 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.2828, allocations: 39 kB / 419.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.823e-06/0.2828, allocations: 0 / 419.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005371/0.2882, allocations: 2.268 MB / 422 MB, free: 3.914 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.2882, allocations: 59.84 kB / 422 MB, free: 3.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.2885, allocations: 270.7 kB / 422.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/0.2886, allocations: 41.7 kB / 422.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.2887, allocations: 176.9 kB / 422.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.2889, allocations: 186.5 kB / 422.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.2891, allocations: 106.2 kB / 422.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.2892, allocations: 342.8 kB / 423.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004712/0.2897, allocations: 221 kB / 423.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005154/0.2902, allocations: 291.2 kB / 423.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000778/0.291, allocations: 403.7 kB / 424 MB, free: 1.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.291, allocations: 0 / 424 MB, free: 1.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001524/0.2925, allocations: 0.7354 MB / 424.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.2926, allocations: 4 kB / 424.8 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2926, allocations: 4 kB / 424.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.2936, allocations: 426.2 kB / 425.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.2939, allocations: 67.91 kB / 425.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002919/0.2968, allocations: 3.66 MB / 428.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.2973, allocations: 79.97 kB / 429 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.2973, allocations: 24 kB / 429 MB, free: 12.46 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.0002316/0.2976, allocations: 173.9 kB / 429.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.432e-05/0.2977, allocations: 43.7 kB / 429.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.2992, allocations: 0.7162 MB / 430 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2993, allocations: 4 kB / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-06/0.2993, allocations: 0 / 430 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2993, allocations: 7.984 kB / 430 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.3015, allocations: 1.286 MB / 431.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.3015, allocations: 4 kB / 431.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/0.3017, allocations: 55.91 kB / 431.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000902/0.3027, allocations: 410.1 kB / 431.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.3027, allocations: 19.92 kB / 431.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0028/0.3055, allocations: 3.618 MB / 435.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3055, allocations: 0 / 435.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3075, allocations: 1.025 MB / 436.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.3077, allocations: 160.8 kB / 436.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.494e-05/0.3078, allocations: 23.94 kB / 436.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000487/0.3083, allocations: 67.91 kB / 436.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.3085, allocations: 96.41 kB / 436.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.3086, allocations: 23.97 kB / 436.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.3087, allocations: 197.9 kB / 436.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3088, allocations: 0 / 436.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004766/0.3092, allocations: 116 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.003001/0.3122, allocations: 1.846 MB / 438.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.3138, allocations: 0.7967 MB / 439.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3138, allocations: 0 / 439.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008987/0.3147, allocations: 0.5345 MB / 440.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005771/0.3153, allocations: 75.56 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.007161/0.3225, allocations: 4.318 MB / 444.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004461/0.323, allocations: 0.8085 MB / 445.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.3232, allocations: 39.22 kB / 445.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.3234, allocations: 127.3 kB / 445.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3234, allocations: 0 / 445.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04001/0.3634, allocations: 13.69 MB / 459.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.51, allocations: 7.797 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.0.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