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.001339/0.001339, allocations: 122.1 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.001404/0.001404, 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.456/1.456, allocations: 227.4 MB / 247 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.2276/0.2276, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 83.86 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3413, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004171/0.3455, allocations: 2.37 MB / 0.5329 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.3473, allocations: 0.9016 MB / 0.5338 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002337/0.3476, allocations: 9.125 kB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003295/0.348, allocations: 55.72 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002759/0.3483, allocations: 70.62 kB / 0.5339 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005058/0.3488, allocations: 155.9 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000501/0.3493, allocations: 344.6 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.3496, allocations: 90.02 kB / 0.5345 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003572/0.35, allocations: 152.2 kB / 0.5346 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.3503, allocations: 163.6 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.467e-05/0.3503, allocations: 26.12 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002269/0.3506, allocations: 87.22 kB / 0.5349 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.3507, allocations: 80.05 kB / 0.535 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.3509, allocations: 134.7 kB / 0.5351 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006484/0.3515, allocations: 383 kB / 0.5355 GB, free: 9.633 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3516, allocations: 0 / 0.5355 GB, free: 9.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.3516, allocations: 1.438 kB / 0.5355 GB, free: 9.633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.3516, allocations: 0 / 0.5355 GB, free: 9.633 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.001168/0.3528, allocations: 0.5872 MB / 0.536 GB, free: 9.094 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.3528, allocations: 9.688 kB / 0.5361 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.573e-05/0.3529, allocations: 57.38 kB / 0.5361 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.3531, allocations: 40.12 kB / 0.5361 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.3536, allocations: 262.2 kB / 0.5364 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.3536, allocations: 22.25 kB / 0.5364 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.3537, allocations: 23.19 kB / 0.5364 GB, free: 8.727 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.3542, allocations: 271.5 kB / 0.5367 GB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.3543, allocations: 5.328 kB / 0.5367 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.3543, allocations: 9.656 kB / 0.5367 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.3543, allocations: 5.844 kB / 0.5367 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000527/0.3549, allocations: 237.2 kB / 0.5369 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001538/0.3564, allocations: 0.7345 MB / 0.5377 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006362/0.3571, allocations: 255.4 kB / 0.5379 GB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.3574, allocations: 135 kB / 0.538 GB, free: 7.602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.965e-05/0.3574, allocations: 3.406 kB / 0.538 GB, free: 7.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.3575, allocations: 39.72 kB / 0.5381 GB, free: 7.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.295e-06/0.3575, allocations: 0 / 0.5381 GB, free: 7.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003473/0.361, allocations: 1.422 MB / 0.5395 GB, free: 6.516 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.361, allocations: 54.03 kB / 0.5395 GB, free: 6.453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.3613, allocations: 209.9 kB / 0.5397 GB, free: 6.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.3614, allocations: 32.48 kB / 0.5397 GB, free: 6.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.3615, allocations: 142.5 kB / 0.5399 GB, free: 6.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3616, allocations: 120.8 kB / 0.54 GB, free: 6.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.3617, allocations: 73.97 kB / 0.5401 GB, free: 5.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3619, allocations: 336.6 kB / 0.5404 GB, free: 5.633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000267/0.3622, allocations: 115 kB / 0.5405 GB, free: 5.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.3625, allocations: 165.6 kB / 0.5407 GB, free: 5.473 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000459/0.363, allocations: 240.8 kB / 0.5409 GB, free: 5.332 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.363, allocations: 1.312 kB / 0.5409 GB, free: 5.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009829/0.364, allocations: 426.5 kB / 0.5413 GB, free: 5.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.364, allocations: 9.469 kB / 0.5413 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.364, allocations: 5.062 kB / 0.5413 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005201/0.3645, allocations: 193.1 kB / 0.5415 GB, free: 5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.3648, allocations: 60.39 kB / 0.5416 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008497/0.3657, allocations: 0.7281 MB / 0.5423 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003288/0.366, allocations: 38.58 kB / 0.5423 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.175e-05/0.366, allocations: 12.16 kB / 0.5423 GB, free: 4.32 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.0002084/0.3663, allocations: 152.6 kB / 0.5425 GB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-05/0.3663, allocations: 22.89 kB / 0.5425 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.299e-05/0.3664, allocations: 31.22 kB / 0.5425 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.3664, allocations: 3.406 kB / 0.5425 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.3665, allocations: 7.984 kB / 0.5425 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3665, allocations: 5.078 kB / 0.5425 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.3683, allocations: 0.9382 MB / 0.5434 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3683, allocations: 4.75 kB / 0.5434 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.3685, allocations: 49.75 kB / 0.5435 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004194/0.369, allocations: 176.8 kB / 0.5437 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.369, allocations: 10.05 kB / 0.5437 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007237/0.3697, allocations: 0.689 MB / 0.5443 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3698, allocations: 5.094 kB / 0.5443 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.371, allocations: 0.617 MB / 0.545 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.3712, allocations: 136.7 kB / 0.5451 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.919e-05/0.3713, allocations: 16.09 kB / 0.5451 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.3716, allocations: 33.8 kB / 0.5451 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.3717, allocations: 42.47 kB / 0.5452 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.3718, allocations: 11.86 kB / 0.5452 GB, free: 2.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001725/0.372, allocations: 157.8 kB / 0.5453 GB, free: 1.938 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.372, allocations: 1.438 kB / 0.5453 GB, free: 1.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004022/0.3724, allocations: 70.09 kB / 0.5454 GB, free: 1.926 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.002738/0.3751, allocations: 1.394 MB / 0.5468 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009018/0.3761, allocations: 303.6 kB / 0.547 GB, free: 412 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3761, allocations: 0 / 0.547 GB, free: 412 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003755/0.3765, allocations: 180.3 kB / 0.5472 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.377, allocations: 43.84 kB / 0.5473 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005463/0.3825, allocations: 3.097 MB / 0.5503 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.3829, allocations: 0.7563 MB / 0.551 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.383, allocations: 26.28 kB / 0.5511 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3832, allocations: 75.41 kB / 0.5511 GB, free: 12.09 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3832, allocations: 0 / 0.5511 GB, free: 12.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03734/0.4205, allocations: 7.852 MB / 0.5588 GB, free: 4.402 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.8, allocations: 8 kB / 0.5588 GB, free: 4.395 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/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