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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001687, allocations: 103.6 kB / 21.19 MB, free: 0.5234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001493/0.001493, allocations: 213.9 kB / 24.48 MB, free: 3.836 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 230.5 MB / 258.1 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2286/0.2286, allocations: 46.96 MB / 361.6 MB, free: 4.004 MB / 286.1 MB " [Timeout remaining time 180] 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=5002,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=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002561/0.002561, allocations: 88.14 kB / 0.4974 GB, free: 7.055 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3189, allocations: 66.07 MB / 0.5619 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003965/0.3228, allocations: 2.262 MB / 0.5641 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.3245, allocations: 0.8568 MB / 0.5649 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.3246, allocations: 7.938 kB / 0.565 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002573/0.3248, allocations: 51.56 kB / 0.565 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001892/0.325, allocations: 75.34 kB / 0.5651 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.3254, allocations: 163.6 kB / 0.5652 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000403/0.3258, allocations: 339.3 kB / 0.5656 GB, free: 216 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.326, allocations: 65.11 kB / 0.5656 GB, free: 144 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.3263, allocations: 155.5 kB / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.3265, allocations: 155.3 kB / 0.5659 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.3265, allocations: 24 kB / 0.5659 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.3267, allocations: 83.98 kB / 0.566 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.3268, allocations: 79.73 kB / 0.5661 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.327, allocations: 119.4 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004813/0.3275, allocations: 393.1 kB / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3275, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3275, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.3275, allocations: 0 / 0.5666 GB, free: 15.16 MB / 414.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.0009864/0.3285, allocations: 0.5206 MB / 0.5671 GB, free: 14.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3285, allocations: 12.03 kB / 0.5671 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.3287, allocations: 36.78 kB / 0.5671 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.3291, allocations: 194.8 kB / 0.5673 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.5e-05/0.3291, allocations: 20.88 kB / 0.5673 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.529e-05/0.3291, allocations: 24.38 kB / 0.5674 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005518/0.3297, allocations: 264.3 kB / 0.5676 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.3297, allocations: 7.953 kB / 0.5676 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.3297, allocations: 8 kB / 0.5676 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3298, allocations: 7.938 kB / 0.5676 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.3303, allocations: 237.9 kB / 0.5679 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.3317, allocations: 0.588 MB / 0.5684 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005729/0.3322, allocations: 230.4 kB / 0.5687 GB, free: 12.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.3325, allocations: 129.2 kB / 0.5688 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.3325, allocations: 0 / 0.5688 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.3326, allocations: 46.44 kB / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.303e-06/0.3326, allocations: 0 / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003162/0.3357, allocations: 1.184 MB / 0.57 GB, free: 11.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.3358, allocations: 55.41 kB / 0.57 GB, free: 11.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.336, allocations: 186.9 kB / 0.5702 GB, free: 11.24 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.336, allocations: 41.7 kB / 0.5703 GB, free: 11.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3362, allocations: 140.8 kB / 0.5704 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.3363, allocations: 123.1 kB / 0.5705 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.3364, allocations: 69.64 kB / 0.5706 GB, free: 10.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3366, allocations: 330.8 kB / 0.5709 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.3368, allocations: 119.9 kB / 0.571 GB, free: 10.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.3372, allocations: 164.4 kB / 0.5712 GB, free: 10.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.3376, allocations: 235.9 kB / 0.5714 GB, free: 9.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3376, allocations: 7.938 kB / 0.5714 GB, free: 9.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009111/0.3385, allocations: 418.1 kB / 0.5718 GB, free: 9.562 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3386, allocations: 4 kB / 0.5718 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3386, allocations: 0 / 0.5718 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004906/0.3391, allocations: 196.7 kB / 0.572 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.3393, allocations: 55.91 kB / 0.572 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008537/0.3401, allocations: 0.7313 MB / 0.5727 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.3404, allocations: 39.92 kB / 0.5728 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.3404, allocations: 15.98 kB / 0.5728 GB, free: 8.5 MB / 414.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.0001915/0.3406, allocations: 153.2 kB / 0.5729 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.71e-05/0.3407, allocations: 27.86 kB / 0.573 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.146e-05/0.3408, allocations: 34.64 kB / 0.573 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3408, allocations: 0 / 0.573 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.3408, allocations: 7.938 kB / 0.573 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3408, allocations: 0 / 0.573 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.3425, allocations: 0.8305 MB / 0.5738 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3425, allocations: 0 / 0.5738 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002249/0.3427, allocations: 47.91 kB / 0.5739 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004/0.3431, allocations: 180.7 kB / 0.574 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.3432, allocations: 4 kB / 0.574 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007546/0.3439, allocations: 0.6929 MB / 0.5747 GB, free: 6.445 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.3439, allocations: 4.031 kB / 0.5747 GB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.3451, allocations: 0.6123 MB / 0.5753 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.3452, allocations: 39.86 kB / 0.5754 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.653e-05/0.3453, allocations: 19.98 kB / 0.5754 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002613/0.3456, allocations: 27.97 kB / 0.5754 GB, free: 5.723 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.3457, allocations: 55.83 kB / 0.5755 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.3457, allocations: 12.06 kB / 0.5755 GB, free: 5.656 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001496/0.3459, allocations: 143.5 kB / 0.5756 GB, free: 5.516 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3459, allocations: 0 / 0.5756 GB, free: 5.516 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.3462, allocations: 71.95 kB / 0.5757 GB, free: 5.445 MB / 414.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.001474/0.3477, allocations: 384.7 kB / 0.576 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007723/0.3485, allocations: 295.6 kB / 0.5763 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3485, allocations: 0 / 0.5763 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.3488, allocations: 147.9 kB / 0.5765 GB, free: 4.754 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.3492, allocations: 47.39 kB / 0.5765 GB, free: 4.711 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.3514, allocations: 0.7946 MB / 0.5773 GB, free: 3.879 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001812/0.3516, allocations: 142.9 kB / 0.5774 GB, free: 3.719 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.732e-05/0.3516, allocations: 31.42 kB / 0.5775 GB, free: 3.688 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3516, allocations: 0 / 0.5775 GB, free: 3.688 MB / 414.1 MB Notification: Performance of Templates: time 0.007626/0.3593, allocations: 4.538 MB / 0.5819 GB, free: 15.15 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.595920125953853]