Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001698/0.001698, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001908/0.001908, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 55.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2623, allocations: 50.55 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00416/0.2665, allocations: 2.861 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.269, allocations: 1.275 MB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.2692, allocations: 8 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003562/0.2696, allocations: 83.28 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005567/0.2702, allocations: 210.4 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005777/0.2708, allocations: 259.1 kB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007531/0.2715, allocations: 0.7133 MB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.2718, allocations: 123.4 kB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004554/0.2722, allocations: 327 kB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000462/0.2727, allocations: 378.8 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.196e-05/0.2728, allocations: 56 kB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002871/0.2731, allocations: 163.9 kB / 415.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.2733, allocations: 163.5 kB / 415.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000272/0.2736, allocations: 266.7 kB / 415.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008768/0.2745, allocations: 0.7191 MB / 416.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2745, allocations: 3.938 kB / 416.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2745, allocations: 0 / 416.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.2745, allocations: 0 / 416.3 MB, free: 9.957 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001696/0.2762, allocations: 0.8569 MB / 417.2 MB, free: 9.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2763, allocations: 8.031 kB / 417.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.2764, allocations: 78.72 kB / 417.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004143/0.2768, allocations: 76.62 kB / 417.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006191/0.2774, allocations: 374.5 kB / 417.7 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.2776, allocations: 104.9 kB / 417.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.2777, allocations: 44.33 kB / 417.8 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.2788, allocations: 0.5604 MB / 418.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.2788, allocations: 3.984 kB / 418.4 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.587e-05/0.2789, allocations: 16 kB / 418.4 MB, free: 7.727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.2789, allocations: 12 kB / 418.4 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.2802, allocations: 0.605 MB / 419 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00253/0.2827, allocations: 1.314 MB / 420.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.2839, allocations: 0.525 MB / 420.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006342/0.2846, allocations: 310.3 kB / 421.2 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.2846, allocations: 8.562 kB / 421.2 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.2847, allocations: 39.12 kB / 421.2 MB, free: 4.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.355e-06/0.2847, allocations: 4 kB / 421.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.007142/0.2918, allocations: 2.743 MB / 424 MB, free: 1.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.089e-05/0.292, allocations: 89.66 kB / 424.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005332/0.2925, allocations: 351.3 kB / 424.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.624e-05/0.2926, allocations: 45.7 kB / 424.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.2928, allocations: 165.8 kB / 424.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/0.293, allocations: 249.9 kB / 424.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/0.2933, allocations: 130.2 kB / 425 MB, free: 0.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.2935, allocations: 346.8 kB / 425.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006352/0.2941, allocations: 265.2 kB / 425.6 MB, free: 316 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006797/0.2948, allocations: 338.5 kB / 425.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.2959, allocations: 491.1 kB / 426.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2959, allocations: 0 / 426.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001819/0.2978, allocations: 0.8376 MB / 427.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.2978, allocations: 4 kB / 427.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.2978, allocations: 8 kB / 427.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.2989, allocations: 445.3 kB / 427.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/0.2993, allocations: 87.81 kB / 427.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3006, allocations: 1.025 MB / 428.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004754/0.3011, allocations: 59.94 kB / 428.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/0.3012, allocations: 31.92 kB / 428.9 MB, free: 12.96 MB / 350.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002855/0.3015, allocations: 173.8 kB / 429 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.3016, allocations: 47.72 kB / 429.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001567/0.3018, allocations: 67.86 kB / 429.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.3018, allocations: 12 kB / 429.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3018, allocations: 0 / 429.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3018, allocations: 3.984 kB / 429.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003285/0.3051, allocations: 1.694 MB / 430.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3051, allocations: 0 / 430.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004143/0.3056, allocations: 83.88 kB / 430.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009899/0.3066, allocations: 428.5 kB / 431.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.587e-05/0.3066, allocations: 19.98 kB / 431.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.3079, allocations: 0.9861 MB / 432.4 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3079, allocations: 0 / 432.4 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.3105, allocations: 1.225 MB / 433.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.3108, allocations: 188.7 kB / 433.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.97e-05/0.3109, allocations: 16 kB / 433.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.3114, allocations: 60 kB / 433.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.3117, allocations: 88.41 kB / 433.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/0.3117, allocations: 31.91 kB / 434 MB, free: 7.703 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003389/0.3121, allocations: 253.9 kB / 434.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3121, allocations: 0 / 434.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005442/0.3126, allocations: 143.9 kB / 434.4 MB, free: 7.316 MB / 350.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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004074/0.3167, allocations: 2.046 MB / 436.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.3186, allocations: 0.6806 MB / 437.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.768e-06/0.3186, allocations: 0 / 437.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000896/0.3195, allocations: 376 kB / 437.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006306/0.3201, allocations: 70.52 kB / 437.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008573/0.3287, allocations: 4.905 MB / 442.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.3292, allocations: 0.8173 MB / 443.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002854/0.3295, allocations: 79.38 kB / 443.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.3298, allocations: 147.3 kB / 443.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3298, allocations: 0 / 443.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04428/0.3741, allocations: 14.4 MB / 457.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.13, allocations: 4 kB / 457.9 MB, free: 15.93 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches