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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 195.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009136/0.0009137, allocations: 88.98 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.793e-05, allocations: 4 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.128, allocations: 63.24 MB / 0.5114 GB, free: 6.82 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4717/0.5998, allocations: 89.04 MB / 0.5983 GB, free: 4.949 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.6001, allocations: 68.59 kB / 0.5984 GB, free: 4.914 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01674/0.6168, allocations: 6.355 MB / 0.6046 GB, free: 15.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6169, allocations: 0 / 0.6046 GB, free: 15.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.6169, allocations: 8 kB / 0.6046 GB, free: 15.6 MB / 410.7 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.0007586/0.6176, allocations: 0.5557 MB / 0.6051 GB, free: 15.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.6177, allocations: 15.91 kB / 0.6052 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.618, allocations: 67.45 kB / 0.6052 GB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.6183, allocations: 247 kB / 0.6055 GB, free: 14.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.6183, allocations: 30.03 kB / 0.6055 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.6184, allocations: 44.58 kB / 0.6055 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005483/0.6189, allocations: 371.4 kB / 0.6059 GB, free: 14.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.619, allocations: 15.27 kB / 0.6059 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.662e-05/0.619, allocations: 17.89 kB / 0.6059 GB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.619, allocations: 8 kB / 0.6059 GB, free: 14.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.6194, allocations: 192.6 kB / 0.6061 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.6214, allocations: 1.712 MB / 0.6078 GB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.6218, allocations: 253.9 kB / 0.608 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.6219, allocations: 83.08 kB / 0.6081 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.622, allocations: 7.938 kB / 0.6081 GB, free: 12.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.622, allocations: 42.38 kB / 0.6081 GB, free: 12.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.754e-06/0.622, allocations: 0 / 0.6081 GB, free: 12.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004314/0.6224, allocations: 200.8 kB / 0.6083 GB, free: 11.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.6226, allocations: 209.6 kB / 0.6085 GB, free: 11.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/0.6228, allocations: 235.1 kB / 0.6088 GB, free: 11.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.6228, allocations: 32.52 kB / 0.6088 GB, free: 11.47 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.623, allocations: 234.2 kB / 0.609 GB, free: 11.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.357e-05/0.6231, allocations: 123.9 kB / 0.6091 GB, free: 11.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.6231, allocations: 6.875 kB / 0.6091 GB, free: 11.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.6232, allocations: 353 kB / 0.6095 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.6234, allocations: 90.56 kB / 0.6096 GB, free: 10.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003634/0.6238, allocations: 412 kB / 0.61 GB, free: 10.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.624, allocations: 161 kB / 0.6101 GB, free: 10.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.624, allocations: 0 / 0.6101 GB, free: 10.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006753/0.6247, allocations: 0.5045 MB / 0.6106 GB, free: 9.699 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.814e-05/0.6247, allocations: 13.09 kB / 0.6106 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.6247, allocations: 12 kB / 0.6106 GB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-05/0.6248, allocations: 16 kB / 0.6106 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004472/0.6252, allocations: 151.3 kB / 0.6108 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.242e-05/0.6253, allocations: 23.88 kB / 0.6108 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.6256, allocations: 65.05 kB / 0.6109 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.695e-05/0.6256, allocations: 39.67 kB / 0.6109 GB, free: 9.402 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.6257, allocations: 148.2 kB / 0.611 GB, free: 9.266 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.6259, allocations: 31.62 kB / 0.6111 GB, free: 9.234 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-05/0.626, allocations: 35.16 kB / 0.6111 GB, free: 9.215 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.626, allocations: 4.125 kB / 0.6111 GB, free: 9.211 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.626, allocations: 8 kB / 0.6111 GB, free: 9.203 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.626, allocations: 3.984 kB / 0.6111 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.6272, allocations: 0.6409 MB / 0.6117 GB, free: 8.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.6272, allocations: 0 / 0.6117 GB, free: 8.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004272/0.6276, allocations: 95.25 kB / 0.6118 GB, free: 8.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.6276, allocations: 4 kB / 0.6118 GB, free: 8.477 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.6276, allocations: 11 kB / 0.6119 GB, free: 8.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.6277, allocations: 4 kB / 0.6119 GB, free: 8.469 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.6277, allocations: 4 kB / 0.6119 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006737/0.6283, allocations: 0.8999 MB / 0.6127 GB, free: 7.543 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.488e-05/0.6284, allocations: 104.9 kB / 0.6128 GB, free: 7.422 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.6285, allocations: 18.08 kB / 0.6129 GB, free: 7.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003062/0.6288, allocations: 15.05 kB / 0.6129 GB, free: 7.398 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.27e-05/0.6289, allocations: 23.53 kB / 0.6129 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.6289, allocations: 8 kB / 0.6129 GB, free: 7.371 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001512/0.629, allocations: 178 kB / 0.6131 GB, free: 7.227 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6291, allocations: 3.938 kB / 0.6131 GB, free: 7.223 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000638/0.6297, allocations: 110.2 kB / 0.6132 GB, free: 7.129 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001427/0.6298, allocations: 111.8 kB / 0.6133 GB, free: 7.016 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004332/0.6303, allocations: 266.5 kB / 0.6135 GB, free: 6.809 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6303, allocations: 0 / 0.6135 GB, free: 6.809 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.6304, allocations: 82.55 kB / 0.6136 GB, free: 6.742 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.631, allocations: 61.84 kB / 0.6137 GB, free: 6.699 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.6331, allocations: 1.528 MB / 0.6152 GB, free: 5.172 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.6335, allocations: 0.8033 MB / 0.616 GB, free: 4.344 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.6337, allocations: 43.27 kB / 0.616 GB, free: 4.297 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.294e-05/0.6338, allocations: 27.44 kB / 0.616 GB, free: 4.273 MB / 410.7 MB Notification: Performance of SimCode: time 7.62e-07/0.6338, allocations: 0 / 0.616 GB, free: 4.273 MB / 410.7 MB Notification: Performance of Templates: time 0.005984/0.6398, allocations: 2.659 MB / 0.6186 GB, free: 1.645 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches