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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001269/0.00127, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2451/0.2451, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 79.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.411, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003613/0.4146, allocations: 2.362 MB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.416, allocations: 0.9089 MB / 0.5342 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.4161, allocations: 4.125 kB / 0.5342 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002573/0.4164, allocations: 55.75 kB / 0.5342 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.4166, allocations: 71.8 kB / 0.5343 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.4169, allocations: 143 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003607/0.4173, allocations: 360.9 kB / 0.5348 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.4175, allocations: 86.78 kB / 0.5349 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.4178, allocations: 147 kB / 0.535 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002865/0.4181, allocations: 167.6 kB / 0.5352 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.279e-05/0.4182, allocations: 27.97 kB / 0.5352 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000196/0.4184, allocations: 81.45 kB / 0.5353 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.4185, allocations: 80.17 kB / 0.5354 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.4187, allocations: 138.1 kB / 0.5355 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005076/0.4192, allocations: 384.4 kB / 0.5358 GB, free: 9.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4192, allocations: 1 kB / 0.5359 GB, free: 9.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4192, allocations: 0 / 0.5359 GB, free: 9.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.4193, allocations: 0 / 0.5359 GB, free: 9.879 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.0009305/0.4202, allocations: 0.5835 MB / 0.5364 GB, free: 9.344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.4203, allocations: 14.92 kB / 0.5364 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.4204, allocations: 36.16 kB / 0.5365 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.4208, allocations: 269.4 kB / 0.5367 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.4208, allocations: 18.31 kB / 0.5367 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.4209, allocations: 24.31 kB / 0.5368 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.4214, allocations: 270.1 kB / 0.537 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.4214, allocations: 5.078 kB / 0.537 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.4215, allocations: 10.84 kB / 0.537 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.4215, allocations: 9.469 kB / 0.537 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.422, allocations: 229.5 kB / 0.5373 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.4234, allocations: 0.7259 MB / 0.538 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.424, allocations: 258.6 kB / 0.5382 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000263/0.4243, allocations: 139.1 kB / 0.5384 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.4244, allocations: 3.25 kB / 0.5384 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.4244, allocations: 35.66 kB / 0.5384 GB, free: 7.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.473e-06/0.4244, allocations: 5.094 kB / 0.5384 GB, free: 7.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.00315/0.4276, allocations: 1.415 MB / 0.5398 GB, free: 6.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.4276, allocations: 54.69 kB / 0.5398 GB, free: 6.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.4279, allocations: 208.7 kB / 0.54 GB, free: 6.605 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.4279, allocations: 41.48 kB / 0.5401 GB, free: 6.562 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.626e-05/0.428, allocations: 134.8 kB / 0.5402 GB, free: 6.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.666e-05/0.4281, allocations: 128.5 kB / 0.5403 GB, free: 6.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.4282, allocations: 65.97 kB / 0.5404 GB, free: 6.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4284, allocations: 340.3 kB / 0.5407 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.4286, allocations: 114.9 kB / 0.5408 GB, free: 5.887 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.4289, allocations: 169.4 kB / 0.541 GB, free: 5.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004509/0.4294, allocations: 239.3 kB / 0.5412 GB, free: 5.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.4294, allocations: 1.062 kB / 0.5412 GB, free: 5.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008879/0.4303, allocations: 431.2 kB / 0.5416 GB, free: 5.406 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.4303, allocations: 6.062 kB / 0.5416 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.4303, allocations: 3.938 kB / 0.5416 GB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004917/0.4308, allocations: 196.7 kB / 0.5418 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.4311, allocations: 51.59 kB / 0.5419 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007797/0.4319, allocations: 0.7314 MB / 0.5426 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.4321, allocations: 39.58 kB / 0.5426 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.4322, allocations: 12.42 kB / 0.5426 GB, free: 4.629 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.0001832/0.4323, allocations: 149.9 kB / 0.5428 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.546e-05/0.4324, allocations: 26.61 kB / 0.5428 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.35e-05/0.4325, allocations: 39.08 kB / 0.5428 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4325, allocations: 3.5 kB / 0.5428 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4325, allocations: 1.25 kB / 0.5428 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.4326, allocations: 0 / 0.5428 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.4342, allocations: 0.9459 MB / 0.5438 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4342, allocations: 1.188 kB / 0.5438 GB, free: 3.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/0.4345, allocations: 44.88 kB / 0.5438 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003818/0.4349, allocations: 172.8 kB / 0.544 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.4349, allocations: 11.42 kB / 0.544 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006514/0.4356, allocations: 0.6926 MB / 0.5447 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.4356, allocations: 1.188 kB / 0.5447 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.4367, allocations: 0.6165 MB / 0.5453 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.4369, allocations: 132.5 kB / 0.5454 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.4369, allocations: 12.62 kB / 0.5454 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.4372, allocations: 34.7 kB / 0.5454 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.4373, allocations: 48.02 kB / 0.5455 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.4374, allocations: 19.92 kB / 0.5455 GB, free: 2.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001413/0.4375, allocations: 153.6 kB / 0.5456 GB, free: 2.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4375, allocations: 0 / 0.5456 GB, free: 2.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.4379, allocations: 75.94 kB / 0.5457 GB, free: 2.117 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.0008435/0.4387, allocations: 361 kB / 0.5461 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007347/0.4395, allocations: 311.5 kB / 0.5464 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4395, allocations: 0 / 0.5464 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003322/0.4398, allocations: 163.8 kB / 0.5465 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.4402, allocations: 43.89 kB / 0.5466 GB, free: 1.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.4421, allocations: 0.7723 MB / 0.5473 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.4425, allocations: 0.7564 MB / 0.5481 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.797e-05/0.4426, allocations: 22.23 kB / 0.5481 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.098e-05/0.4426, allocations: 31.42 kB / 0.5481 GB, free: 15.72 MB / 414.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4427, allocations: 4 kB / 0.5481 GB, free: 15.72 MB / 414.1 MB Notification: Performance of Templates: time 0.009717/0.4524, allocations: 5.171 MB / 0.5532 GB, free: 10.56 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches