Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001783/0.001783, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 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.002102/0.002102, allocations: 165.2 kB / 24.5 MB, free: 3.453 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.525/1.525, allocations: 177.1 MB / 204.7 MB, free: 8.992 MB / 190.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.2142/0.2142, allocations: 34.26 MB / 295.4 MB, free: 14.48 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.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002376/0.002376, allocations: 87.86 kB / 443.1 MB, free: 6.504 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3486, allocations: 66.06 MB / 0.4973 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00355/0.3522, allocations: 2.652 MB / 0.4999 GB, free: 28.01 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001143/0.3533, allocations: 0.7437 MB / 0.5006 GB, free: 27.49 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.3535, allocations: 13.47 kB / 0.5006 GB, free: 27.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.3536, allocations: 55.8 kB / 0.5007 GB, free: 27.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.3538, allocations: 128.8 kB / 0.5008 GB, free: 27.35 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.3542, allocations: 117 kB / 0.5009 GB, free: 27.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003437/0.3545, allocations: 434.3 kB / 0.5013 GB, free: 27.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.3547, allocations: 96.55 kB / 0.5014 GB, free: 27.01 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.3549, allocations: 186.7 kB / 0.5016 GB, free: 26.93 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.3552, allocations: 155 kB / 0.5017 GB, free: 26.86 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.893e-05/0.3552, allocations: 35.88 kB / 0.5018 GB, free: 26.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.85e-05/0.3553, allocations: 34.91 kB / 0.5018 GB, free: 26.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.788e-05/0.3554, allocations: 82.78 kB / 0.5019 GB, free: 26.8 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.3555, allocations: 165.9 kB / 0.502 GB, free: 26.72 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003753/0.3559, allocations: 441.5 kB / 0.5024 GB, free: 26.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3559, allocations: 4 kB / 0.5024 GB, free: 26.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3559, allocations: 0 / 0.5024 GB, free: 26.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3559, allocations: 0 / 0.5024 GB, free: 26.54 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0008045/0.3567, allocations: 0.5876 MB / 0.503 GB, free: 26.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3567, allocations: 8.781 kB / 0.503 GB, free: 26.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002636/0.357, allocations: 58.11 kB / 0.5031 GB, free: 26.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.3573, allocations: 224.5 kB / 0.5033 GB, free: 25.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.3574, allocations: 34.31 kB / 0.5033 GB, free: 25.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.349e-05/0.3574, allocations: 40.92 kB / 0.5034 GB, free: 25.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005713/0.358, allocations: 394.5 kB / 0.5037 GB, free: 25.63 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.3e-05/0.358, allocations: 11.08 kB / 0.5038 GB, free: 25.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.3581, allocations: 15.03 kB / 0.5038 GB, free: 25.61 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3581, allocations: 9.594 kB / 0.5038 GB, free: 25.61 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/0.3584, allocations: 215.8 kB / 0.504 GB, free: 25.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.3602, allocations: 1.552 MB / 0.5055 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.3606, allocations: 258.6 kB / 0.5058 GB, free: 24.06 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.3607, allocations: 89.88 kB / 0.5058 GB, free: 23.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.3608, allocations: 6.969 kB / 0.5058 GB, free: 23.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.3608, allocations: 51.73 kB / 0.5059 GB, free: 23.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=26): time 1.894e-06/0.3608, allocations: 0 / 0.5059 GB, free: 23.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006332/0.3614, allocations: 259.2 kB / 0.5061 GB, free: 23.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.861e-05/0.3615, allocations: 219 kB / 0.5063 GB, free: 23.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.3617, allocations: 262.1 kB / 0.5066 GB, free: 23.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.3617, allocations: 29.7 kB / 0.5066 GB, free: 23.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.3618, allocations: 250.7 kB / 0.5069 GB, free: 23.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.397e-05/0.3619, allocations: 132.6 kB / 0.507 GB, free: 23.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.362, allocations: 98.53 kB / 0.5071 GB, free: 23.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3621, allocations: 345.8 kB / 0.5074 GB, free: 22.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.3623, allocations: 99.44 kB / 0.5075 GB, free: 22.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003751/0.3627, allocations: 434.1 kB / 0.5079 GB, free: 22.19 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005715/0.3633, allocations: 0.5634 MB / 0.5085 GB, free: 21.63 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.3633, allocations: 7.281 kB / 0.5085 GB, free: 21.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007526/0.364, allocations: 0.5293 MB / 0.509 GB, free: 21.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.3641, allocations: 10.28 kB / 0.509 GB, free: 21.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.3641, allocations: 12.59 kB / 0.509 GB, free: 21.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.804e-05/0.3641, allocations: 19.62 kB / 0.509 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.3645, allocations: 151.5 kB / 0.5092 GB, free: 21.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.199e-05/0.3645, allocations: 19.44 kB / 0.5092 GB, free: 21.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.3648, allocations: 60.97 kB / 0.5093 GB, free: 21.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.3648, allocations: 31.62 kB / 0.5093 GB, free: 21.33 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.365, allocations: 181.7 kB / 0.5095 GB, free: 21.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.3651, allocations: 33.72 kB / 0.5095 GB, free: 21.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.629e-05/0.3652, allocations: 37.11 kB / 0.5095 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.3652, allocations: 6.219 kB / 0.5095 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.3652, allocations: 4 kB / 0.5095 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.3652, allocations: 3.094 kB / 0.5095 GB, free: 21.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.3662, allocations: 0.5602 MB / 0.5101 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3662, allocations: 3.031 kB / 0.5101 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004069/0.3666, allocations: 86.69 kB / 0.5102 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.3666, allocations: 3 kB / 0.5102 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.3666, allocations: 10.03 kB / 0.5102 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.3666, allocations: 3.062 kB / 0.5102 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3666, allocations: 6.938 kB / 0.5102 GB, free: 20.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005815/0.3672, allocations: 0.8385 MB / 0.511 GB, free: 20 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.951e-05/0.3673, allocations: 35.91 kB / 0.5111 GB, free: 19.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.3673, allocations: 10.06 kB / 0.5111 GB, free: 19.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003342/0.3677, allocations: 10.06 kB / 0.5111 GB, free: 19.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.3677, allocations: 26.84 kB / 0.5111 GB, free: 19.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.3677, allocations: 13.05 kB / 0.5111 GB, free: 19.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.3678, allocations: 175.1 kB / 0.5113 GB, free: 19.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3678, allocations: 4 kB / 0.5113 GB, free: 19.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007955/0.3686, allocations: 103.1 kB / 0.5114 GB, free: 19.83 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001066/0.3687, allocations: 110.4 kB / 0.5115 GB, free: 19.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004785/0.3692, allocations: 275.6 kB / 0.5117 GB, free: 19.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3692, allocations: 4.812 kB / 0.5118 GB, free: 19.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.3694, allocations: 82.31 kB / 0.5118 GB, free: 19.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009885/0.3704, allocations: 75.56 kB / 0.5119 GB, free: 19.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.3724, allocations: 1.539 MB / 0.5134 GB, free: 18.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.3727, allocations: 199.1 kB / 0.5136 GB, free: 18.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.3728, allocations: 44.31 kB / 0.5136 GB, free: 18.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.3729, allocations: 27.5 kB / 0.5137 GB, free: 18.25 MB / 446.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3729, allocations: 1.188 kB / 0.5137 GB, free: 18.25 MB / 446.1 MB Notification: Performance of Templates: time 0.008654/0.3815, allocations: 2.878 MB / 0.5165 GB, free: 17.86 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: 5.108935068012215]