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.001223/0.001224, allocations: 118.1 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.001358/0.001358, 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.421/1.421, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2222/0.2222, allocations: 46.12 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 71.88 kB / 480.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3441, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004329/0.3485, allocations: 2.358 MB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.3505, allocations: 0.9136 MB / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.3508, allocations: 5.719 kB / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003941/0.3512, allocations: 55.2 kB / 0.5337 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000456/0.3517, allocations: 79.73 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006082/0.3523, allocations: 143.4 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000681/0.353, allocations: 353.3 kB / 0.5343 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.3533, allocations: 86.03 kB / 0.5344 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000462/0.3538, allocations: 160.1 kB / 0.5345 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000386/0.3542, allocations: 159.7 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.39e-05/0.3543, allocations: 27.5 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003297/0.3546, allocations: 85.84 kB / 0.5348 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.3548, allocations: 76.11 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002441/0.3551, allocations: 137.9 kB / 0.535 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008679/0.356, allocations: 384.1 kB / 0.5354 GB, free: 9.695 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.356, allocations: 3.938 kB / 0.5354 GB, free: 9.691 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.356, allocations: 0.8125 kB / 0.5354 GB, free: 9.691 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.356, allocations: 0 / 0.5354 GB, free: 9.691 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.001315/0.3573, allocations: 0.5916 MB / 0.5359 GB, free: 9.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.3574, allocations: 9.812 kB / 0.536 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001103/0.3575, allocations: 57.75 kB / 0.536 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002682/0.3578, allocations: 35.31 kB / 0.536 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/0.3583, allocations: 254.8 kB / 0.5363 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.3584, allocations: 18.09 kB / 0.5363 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.858e-05/0.3584, allocations: 23.75 kB / 0.5363 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006302/0.3591, allocations: 279.5 kB / 0.5366 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/0.3591, allocations: 3.953 kB / 0.5366 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.3592, allocations: 10.81 kB / 0.5366 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.3592, allocations: 5.094 kB / 0.5366 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000619/0.3598, allocations: 234 kB / 0.5368 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.3615, allocations: 0.7373 MB / 0.5376 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006262/0.3622, allocations: 252.6 kB / 0.5378 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.3625, allocations: 135.2 kB / 0.5379 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.3625, allocations: 6.344 kB / 0.5379 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.3626, allocations: 40.66 kB / 0.538 GB, free: 7.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.434e-06/0.3626, allocations: 0 / 0.538 GB, free: 7.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003826/0.3664, allocations: 1.418 MB / 0.5394 GB, free: 6.582 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.3665, allocations: 58.12 kB / 0.5394 GB, free: 6.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003279/0.3668, allocations: 205.8 kB / 0.5396 GB, free: 6.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.468e-05/0.3669, allocations: 36.42 kB / 0.5396 GB, free: 6.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.367, allocations: 138.4 kB / 0.5398 GB, free: 6.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.3671, allocations: 123.8 kB / 0.5399 GB, free: 6.082 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.3673, allocations: 71.19 kB / 0.54 GB, free: 6.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3675, allocations: 339.5 kB / 0.5403 GB, free: 5.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.3678, allocations: 116 kB / 0.5404 GB, free: 5.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003353/0.3682, allocations: 169.4 kB / 0.5406 GB, free: 5.531 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.3687, allocations: 233.2 kB / 0.5408 GB, free: 5.398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3687, allocations: 0 / 0.5408 GB, free: 5.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001023/0.3697, allocations: 435.1 kB / 0.5412 GB, free: 5.164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.3698, allocations: 9.5 kB / 0.5412 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.3698, allocations: 1.094 kB / 0.5412 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005495/0.3703, allocations: 188.9 kB / 0.5414 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.3706, allocations: 60.08 kB / 0.5414 GB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008176/0.3714, allocations: 0.7248 MB / 0.5421 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/0.3718, allocations: 37.92 kB / 0.5422 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.918e-05/0.3719, allocations: 9.125 kB / 0.5422 GB, free: 4.395 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.0002181/0.3721, allocations: 160 kB / 0.5423 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.872e-05/0.3722, allocations: 22.48 kB / 0.5424 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.416e-05/0.3723, allocations: 35.31 kB / 0.5424 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3723, allocations: 3.562 kB / 0.5424 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.3723, allocations: 1.125 kB / 0.5424 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3723, allocations: 3.984 kB / 0.5424 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.3742, allocations: 0.9465 MB / 0.5433 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3742, allocations: 0 / 0.5433 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.3745, allocations: 50.09 kB / 0.5434 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004404/0.375, allocations: 176.1 kB / 0.5435 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.375, allocations: 11.33 kB / 0.5436 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007248/0.3757, allocations: 0.6895 MB / 0.5442 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3758, allocations: 0 / 0.5442 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.377, allocations: 0.6173 MB / 0.5448 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/0.3772, allocations: 140.7 kB / 0.545 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.931e-05/0.3773, allocations: 8.312 kB / 0.545 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.3776, allocations: 33.33 kB / 0.545 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.3778, allocations: 47.11 kB / 0.5451 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.3778, allocations: 15.19 kB / 0.5451 GB, free: 2.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.378, allocations: 155.4 kB / 0.5452 GB, free: 2.008 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.378, allocations: 0 / 0.5452 GB, free: 2.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000444/0.3784, allocations: 74.34 kB / 0.5453 GB, free: 1.992 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.002393/0.3808, allocations: 1.401 MB / 0.5467 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009329/0.3818, allocations: 307.5 kB / 0.5469 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3818, allocations: 0 / 0.5469 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003886/0.3822, allocations: 172.3 kB / 0.5471 GB, free: 340 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.3828, allocations: 48.95 kB / 0.5472 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005458/0.3882, allocations: 3.09 MB / 0.5502 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.3886, allocations: 0.7602 MB / 0.5509 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3888, allocations: 26.3 kB / 0.5509 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.3889, allocations: 71.41 kB / 0.551 GB, free: 12.2 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3889, allocations: 0 / 0.551 GB, free: 12.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03276/0.4217, allocations: 7.853 MB / 0.5587 GB, free: 4.508 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.62, allocations: 12.52 kB / 0.5587 GB, free: 4.5 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