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.001294/0.001295, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001574/0.001574, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 66.64 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09793/0.09931, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003983/0.1033, allocations: 2.438 MB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.1056, allocations: 1.061 MB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000347/0.1059, allocations: 4 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004221/0.1064, allocations: 55.52 kB / 361.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000768/0.1072, allocations: 158.4 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.1079, allocations: 155.7 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007901/0.1087, allocations: 470.7 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.1089, allocations: 76.69 kB / 362 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004046/0.1093, allocations: 199.5 kB / 362.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005277/0.1099, allocations: 239.2 kB / 362.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.11, allocations: 40 kB / 362.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004448/0.1105, allocations: 131.9 kB / 362.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001959/0.1107, allocations: 99.72 kB / 362.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002525/0.111, allocations: 179.2 kB / 362.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009063/0.1119, allocations: 494.8 kB / 363.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.1119, allocations: 4 kB / 363.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1119, allocations: 0 / 363.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.1119, allocations: 0 / 363.3 MB, free: 8.188 MB / 302.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.001764/0.1137, allocations: 0.6666 MB / 364 MB, free: 7.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.1138, allocations: 11.97 kB / 364 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.1139, allocations: 66.73 kB / 364.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003875/0.1143, allocations: 52.53 kB / 364.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.1148, allocations: 293.5 kB / 364.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.1149, allocations: 88.52 kB / 364.5 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.601e-05/0.115, allocations: 40.22 kB / 364.6 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007642/0.1158, allocations: 381.2 kB / 364.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1158, allocations: 0 / 364.9 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.81e-05/0.1159, allocations: 12 kB / 364.9 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1159, allocations: 4 kB / 364.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008851/0.1168, allocations: 425.9 kB / 365.4 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.119, allocations: 1.265 MB / 366.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007215/0.1197, allocations: 349.1 kB / 367 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004211/0.1202, allocations: 192.8 kB / 367.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.1202, allocations: 4 kB / 367.2 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.1203, allocations: 43.22 kB / 367.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.244e-06/0.1203, allocations: 0 / 367.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004924/0.1252, allocations: 1.898 MB / 369.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/0.1253, allocations: 88.86 kB / 369.2 MB, free: 2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004108/0.1257, allocations: 246.1 kB / 369.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.971e-05/0.1258, allocations: 37.69 kB / 369.5 MB, free: 1.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.1259, allocations: 140.6 kB / 369.6 MB, free: 1.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.1261, allocations: 154 kB / 369.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.1262, allocations: 82.11 kB / 369.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1264, allocations: 338.8 kB / 370.2 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.1268, allocations: 164.8 kB / 370.3 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.1272, allocations: 229.9 kB / 370.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007061/0.128, allocations: 331.2 kB / 370.9 MB, free: 252 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.128, allocations: 0 / 370.9 MB, free: 252 kB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.1793/0.3073, allocations: 0.5532 MB / 371.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.3074, allocations: 5.812 kB / 371.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.3074, allocations: 1.281 kB / 371.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008964/0.3083, allocations: 292.6 kB / 371.7 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.3086, allocations: 58.7 kB / 371.8 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003761/0.3124, allocations: 2.896 MB / 374.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.3127, allocations: 21.02 kB / 374.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.337e-05/0.3128, allocations: 21.89 kB / 374.7 MB, free: 18.4 MB / 302.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.0001736/0.3129, allocations: 156.7 kB / 374.9 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.313, allocations: 26.78 kB / 374.9 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.838e-05/0.3131, allocations: 43.33 kB / 374.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3131, allocations: 8.656 kB / 374.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3131, allocations: 3.938 kB / 374.9 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3132, allocations: 4.359 kB / 374.9 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.315, allocations: 1.117 MB / 376.1 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.3151, allocations: 8.594 kB / 376.1 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/0.3153, allocations: 45.16 kB / 376.1 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006972/0.316, allocations: 279.4 kB / 376.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.3161, allocations: 20.16 kB / 376.4 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003181/0.3192, allocations: 2.844 MB / 379.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3193, allocations: 0 / 379.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.3208, allocations: 0.8151 MB / 380.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.3209, allocations: 150 kB / 380.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.224e-05/0.321, allocations: 11.03 kB / 380.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.3213, allocations: 21.09 kB / 380.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.3215, allocations: 63.66 kB / 380.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.458e-05/0.3215, allocations: 18.31 kB / 380.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.3217, allocations: 181.6 kB / 380.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3217, allocations: 0 / 380.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006739/0.3224, allocations: 135.9 kB / 380.6 MB, free: 14.7 MB / 302.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.00271/0.3251, allocations: 1.655 MB / 382.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.3267, allocations: 0.6373 MB / 382.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3267, allocations: 0 / 382.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007837/0.3275, allocations: 432.2 kB / 383.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.3281, allocations: 41.81 kB / 383.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/0.3333, allocations: 3.415 MB / 386.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.3336, allocations: 0.7793 MB / 387.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002489/0.3339, allocations: 75.73 kB / 387.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.334, allocations: 95.19 kB / 387.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.334, allocations: 0 / 387.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03551/0.3696, allocations: 10.34 MB / 398.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.12, allocations: 19.97 kB / 398.1 MB, free: 6.043 MB / 302.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