Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 202 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.449/1.449, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002187/0.002188, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3224, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003916/0.3264, allocations: 2.453 MB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.3284, allocations: 1.049 MB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.3286, allocations: 7.938 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000339/0.329, allocations: 63.5 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005513/0.3296, allocations: 146.3 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004666/0.33, allocations: 167 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006035/0.3307, allocations: 482.6 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.3309, allocations: 60.7 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.3312, allocations: 203.5 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000345/0.3315, allocations: 243.2 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.265e-05/0.3316, allocations: 40 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003005/0.3319, allocations: 135.9 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.3321, allocations: 103.7 kB / 413.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.3323, allocations: 175.2 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007174/0.333, allocations: 0.4895 MB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.333, allocations: 0 / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.333, allocations: 0 / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.3331, allocations: 0 / 414.5 MB, free: 11.74 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001384/0.3344, allocations: 0.6777 MB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3345, allocations: 12.03 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.3e-05/0.3346, allocations: 66.67 kB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003446/0.3349, allocations: 52.72 kB / 415.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005892/0.3356, allocations: 301.5 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.3357, allocations: 92.5 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/0.3358, allocations: 28.36 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000804/0.3366, allocations: 385.2 kB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.3366, allocations: 3.953 kB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.097e-05/0.3367, allocations: 12 kB / 416.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3367, allocations: 8 kB / 416.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009059/0.3376, allocations: 421.9 kB / 416.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.3399, allocations: 1.261 MB / 417.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007581/0.3407, allocations: 346 kB / 418.2 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004147/0.3412, allocations: 184.8 kB / 418.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.3412, allocations: 8 kB / 418.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.3412, allocations: 35.28 kB / 418.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 5.47e-06/0.3413, allocations: 0 / 418.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.005276/0.3465, allocations: 1.918 MB / 420.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.3467, allocations: 88.86 kB / 420.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.347, allocations: 247 kB / 420.6 MB, free: 5.277 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.3471, allocations: 29.7 kB / 420.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.3472, allocations: 144.8 kB / 420.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.3474, allocations: 150.7 kB / 420.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.3475, allocations: 94.06 kB / 421 MB, free: 4.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3477, allocations: 334.8 kB / 421.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004112/0.3481, allocations: 168.8 kB / 421.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004447/0.3486, allocations: 225.9 kB / 421.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007336/0.3493, allocations: 335.2 kB / 422.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3493, allocations: 0 / 422.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001251/0.3506, allocations: 0.5553 MB / 422.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.3506, allocations: 4 kB / 422.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3507, allocations: 8 kB / 422.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009022/0.3516, allocations: 300.6 kB / 422.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.3519, allocations: 55.89 kB / 423 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004538/0.3564, allocations: 2.901 MB / 425.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003744/0.3568, allocations: 27.97 kB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.375e-05/0.3569, allocations: 16 kB / 425.9 MB, free: 15.76 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002587/0.3572, allocations: 157.6 kB / 426.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.3573, allocations: 31.81 kB / 426.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.3574, allocations: 46.98 kB / 426.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-06/0.3574, allocations: 8.062 kB / 426.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3574, allocations: 0 / 426.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3574, allocations: 0 / 426.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.3596, allocations: 1.113 MB / 427.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3596, allocations: 3.938 kB / 427.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.3599, allocations: 47.97 kB / 427.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008019/0.3607, allocations: 292.8 kB / 427.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.3608, allocations: 15.92 kB / 427.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004293/0.3651, allocations: 2.839 MB / 430.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.3651, allocations: 8.031 kB / 430.5 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.367, allocations: 0.8044 MB / 431.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002568/0.3673, allocations: 157 kB / 431.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.813e-05/0.3674, allocations: 11.94 kB / 431.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.3677, allocations: 23.98 kB / 431.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.368, allocations: 67.83 kB / 431.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.879e-05/0.368, allocations: 19.98 kB / 431.6 MB, free: 9.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002855/0.3683, allocations: 184.2 kB / 431.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3683, allocations: 0 / 431.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008402/0.3692, allocations: 131.9 kB / 431.9 MB, free: 9.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003113/0.3723, allocations: 1.648 MB / 433.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.374, allocations: 0.6213 MB / 434.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.374, allocations: 0 / 434.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009417/0.375, allocations: 433.1 kB / 434.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006153/0.3756, allocations: 47.88 kB / 434.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006816/0.3824, allocations: 3.425 MB / 438 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/0.383, allocations: 0.7761 MB / 438.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003573/0.3834, allocations: 70.91 kB / 438.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.3837, allocations: 95.38 kB / 439 MB, free: 2.379 MB / 350.1 MB Notification: Performance of SimCode: time 1.894e-06/0.3837, allocations: 0 / 439 MB, free: 2.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04143/0.4252, allocations: 10.55 MB / 449.5 MB, free: 8.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.22, allocations: 4.828 kB / 449.5 MB, free: 8 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches