Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, 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.001321/0.001321, 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.434/1.434, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2308/0.2308, allocations: 46.09 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 75.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3611, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00401/0.3652, allocations: 2.362 MB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.3669, allocations: 0.906 MB / 0.5337 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.3671, allocations: 3.75 kB / 0.5337 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.3674, allocations: 56.53 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002549/0.3677, allocations: 82.98 kB / 0.5338 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004775/0.3682, allocations: 144 kB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004902/0.3687, allocations: 352.6 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.3689, allocations: 82.8 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/0.3693, allocations: 164.5 kB / 0.5345 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.3696, allocations: 162.8 kB / 0.5347 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-05/0.3696, allocations: 27.75 kB / 0.5347 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.3698, allocations: 83.23 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.37, allocations: 74.73 kB / 0.5349 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.3701, allocations: 137.9 kB / 0.535 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005559/0.3707, allocations: 380.1 kB / 0.5354 GB, free: 9.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.3707, allocations: 5.375 kB / 0.5354 GB, free: 9.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3707, allocations: 0 / 0.5354 GB, free: 9.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.3707, allocations: 3.938 kB / 0.5354 GB, free: 9.676 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001041/0.3718, allocations: 0.5877 MB / 0.5359 GB, free: 9.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.3718, allocations: 8.719 kB / 0.536 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.189e-05/0.3719, allocations: 58.52 kB / 0.536 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.3721, allocations: 39.5 kB / 0.536 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.3726, allocations: 258.2 kB / 0.5363 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/0.3727, allocations: 18.88 kB / 0.5363 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.365e-05/0.3727, allocations: 23.22 kB / 0.5363 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00056/0.3733, allocations: 270.7 kB / 0.5366 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.3733, allocations: 9.078 kB / 0.5366 GB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.3734, allocations: 6.344 kB / 0.5366 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.3734, allocations: 5.344 kB / 0.5366 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005196/0.3739, allocations: 234.1 kB / 0.5368 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.3754, allocations: 0.7373 MB / 0.5376 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005948/0.376, allocations: 251.7 kB / 0.5378 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.3763, allocations: 139.5 kB / 0.5379 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.3763, allocations: 3.438 kB / 0.5379 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.3763, allocations: 31.59 kB / 0.538 GB, free: 7.613 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.604e-06/0.3763, allocations: 0 / 0.538 GB, free: 7.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003422/0.3798, allocations: 1.421 MB / 0.5393 GB, free: 6.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.3798, allocations: 59.47 kB / 0.5394 GB, free: 6.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002708/0.3801, allocations: 209.6 kB / 0.5396 GB, free: 6.348 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.051e-05/0.3802, allocations: 40.39 kB / 0.5396 GB, free: 6.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.647e-05/0.3803, allocations: 138 kB / 0.5398 GB, free: 6.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.3804, allocations: 128.4 kB / 0.5399 GB, free: 6.062 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.3805, allocations: 67.44 kB / 0.54 GB, free: 6.016 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3807, allocations: 339.4 kB / 0.5403 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002623/0.3809, allocations: 115.9 kB / 0.5404 GB, free: 5.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.3812, allocations: 165.1 kB / 0.5406 GB, free: 5.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004761/0.3817, allocations: 241 kB / 0.5408 GB, free: 5.379 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3817, allocations: 1.156 kB / 0.5408 GB, free: 5.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009209/0.3827, allocations: 427.6 kB / 0.5412 GB, free: 5.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.3827, allocations: 8.531 kB / 0.5412 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3827, allocations: 1 kB / 0.5412 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005058/0.3832, allocations: 197.5 kB / 0.5414 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.3835, allocations: 51.62 kB / 0.5414 GB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008418/0.3843, allocations: 0.728 MB / 0.5421 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.3846, allocations: 38.95 kB / 0.5422 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.3847, allocations: 15.98 kB / 0.5422 GB, free: 4.371 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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 {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002066/0.3849, allocations: 148.7 kB / 0.5423 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-05/0.385, allocations: 22.42 kB / 0.5424 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.3851, allocations: 39.2 kB / 0.5424 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3851, allocations: 3.438 kB / 0.5424 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.3851, allocations: 5.281 kB / 0.5424 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.3851, allocations: 4 kB / 0.5424 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.3869, allocations: 0.9381 MB / 0.5433 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3869, allocations: 1.125 kB / 0.5433 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.3872, allocations: 57.25 kB / 0.5434 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004321/0.3876, allocations: 176.6 kB / 0.5436 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.675e-05/0.3877, allocations: 11.64 kB / 0.5436 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007391/0.3884, allocations: 0.6889 MB / 0.5442 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3884, allocations: 4.062 kB / 0.5442 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.3897, allocations: 0.6136 MB / 0.5448 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3899, allocations: 131.9 kB / 0.545 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.021e-05/0.39, allocations: 12.47 kB / 0.545 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.3903, allocations: 37.52 kB / 0.545 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.3904, allocations: 47.33 kB / 0.5451 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.292e-05/0.3905, allocations: 14.98 kB / 0.5451 GB, free: 2.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001645/0.3906, allocations: 150.8 kB / 0.5452 GB, free: 1.992 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3906, allocations: 0 / 0.5452 GB, free: 1.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004241/0.3911, allocations: 71.34 kB / 0.5453 GB, free: 1.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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 {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002287/0.3934, allocations: 1.405 MB / 0.5467 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008366/0.3942, allocations: 307.5 kB / 0.5469 GB, free: 484 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3943, allocations: 0 / 0.5469 GB, free: 484 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.3946, allocations: 176.5 kB / 0.5471 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004888/0.3951, allocations: 39.17 kB / 0.5472 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005383/0.4005, allocations: 3.1 MB / 0.5502 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.4009, allocations: 0.7563 MB / 0.5509 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.4011, allocations: 30.27 kB / 0.5509 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.4012, allocations: 71.41 kB / 0.551 GB, free: 12.17 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4012, allocations: 0 / 0.551 GB, free: 12.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03522/0.4365, allocations: 7.849 MB / 0.5587 GB, free: 4.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.27, allocations: 6.328 kB / 0.5587 GB, free: 4.477 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches