Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001502, allocations: 197.2 kB / 16.79 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 244.1 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007219/0.0007218, allocations: 101.5 kB / 296.1 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3066/0.3066, allocations: 44.83 MB / 393 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002365/0.0002365, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3002, allocations: 62.96 MB / 0.5165 GB, free: 37.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.4066, allocations: 88.97 MB / 0.6034 GB, free: 404 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.4069, allocations: 71.95 kB / 0.6034 GB, free: 332 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01633/0.4233, allocations: 6.343 MB / 0.6096 GB, free: 9.961 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4233, allocations: 4 kB / 0.6096 GB, free: 9.957 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.4233, allocations: 12 kB / 0.6096 GB, free: 9.945 MB / 426.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.0007221/0.424, allocations: 0.5659 MB / 0.6102 GB, free: 9.324 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.4241, allocations: 8.031 kB / 0.6102 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002248/0.4243, allocations: 72.44 kB / 0.6103 GB, free: 9.246 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.4246, allocations: 273.2 kB / 0.6105 GB, free: 8.938 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.4246, allocations: 29.38 kB / 0.6106 GB, free: 8.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.687e-05/0.4247, allocations: 40.28 kB / 0.6106 GB, free: 8.871 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.4253, allocations: 394.7 kB / 0.611 GB, free: 8.449 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.4253, allocations: 8.094 kB / 0.611 GB, free: 8.441 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.4253, allocations: 19.94 kB / 0.611 GB, free: 8.422 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.4254, allocations: 15.94 kB / 0.611 GB, free: 8.406 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004027/0.4258, allocations: 231.7 kB / 0.6112 GB, free: 8.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.4277, allocations: 1.706 MB / 0.6129 GB, free: 6.367 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.4281, allocations: 270.3 kB / 0.6132 GB, free: 6.039 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.4283, allocations: 98.09 kB / 0.6132 GB, free: 5.922 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.4283, allocations: 8.234 kB / 0.6133 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.4283, allocations: 42.5 kB / 0.6133 GB, free: 5.863 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.834e-06/0.4284, allocations: 0 / 0.6133 GB, free: 5.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006265/0.429, allocations: 277.3 kB / 0.6136 GB, free: 5.586 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.26e-05/0.4291, allocations: 217.5 kB / 0.6138 GB, free: 5.324 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.4293, allocations: 266.9 kB / 0.614 GB, free: 5.055 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.4294, allocations: 29.7 kB / 0.6141 GB, free: 5.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.4295, allocations: 243.3 kB / 0.6143 GB, free: 4.777 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.374e-05/0.4296, allocations: 118.4 kB / 0.6144 GB, free: 4.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.4296, allocations: 8 kB / 0.6144 GB, free: 4.652 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4297, allocations: 351.1 kB / 0.6147 GB, free: 4.301 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.4299, allocations: 93.27 kB / 0.6148 GB, free: 4.211 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/0.4303, allocations: 436.8 kB / 0.6152 GB, free: 3.625 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006299/0.431, allocations: 0.5703 MB / 0.6158 GB, free: 2.895 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.431, allocations: 7.938 kB / 0.6158 GB, free: 2.887 MB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008161/0.4318, allocations: 0.5325 MB / 0.6163 GB, free: 2.348 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.4318, allocations: 8 kB / 0.6163 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.4318, allocations: 12 kB / 0.6163 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.4319, allocations: 16 kB / 0.6164 GB, free: 2.312 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.4323, allocations: 152.5 kB / 0.6165 GB, free: 2.164 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.096e-05/0.4323, allocations: 23.92 kB / 0.6165 GB, free: 2.141 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.4326, allocations: 71.31 kB / 0.6166 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.4326, allocations: 32 kB / 0.6166 GB, free: 2.039 MB / 426.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.4328, allocations: 185.5 kB / 0.6168 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.433, allocations: 32.12 kB / 0.6168 GB, free: 1.816 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.192e-05/0.433, allocations: 33.78 kB / 0.6169 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.433, allocations: 8 kB / 0.6169 GB, free: 1.773 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.4331, allocations: 4 kB / 0.6169 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.4331, allocations: 0 / 0.6169 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.4342, allocations: 0.6513 MB / 0.6175 GB, free: 1.055 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.4342, allocations: 4 kB / 0.6175 GB, free: 1.051 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.4346, allocations: 91.94 kB / 0.6176 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.4347, allocations: 4 kB / 0.6176 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.4347, allocations: 8 kB / 0.6176 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.4347, allocations: 4 kB / 0.6176 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.4347, allocations: 7.938 kB / 0.6176 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006785/0.4354, allocations: 0.8477 MB / 0.6185 GB, free: 68 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.878e-05/0.4355, allocations: 108.8 kB / 0.6186 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.4355, allocations: 11.98 kB / 0.6186 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.4358, allocations: 12 kB / 0.6186 GB, free: 15.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.613e-05/0.4359, allocations: 27.84 kB / 0.6186 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.4359, allocations: 8 kB / 0.6186 GB, free: 15.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001449/0.4361, allocations: 186 kB / 0.6188 GB, free: 15.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4361, allocations: 0 / 0.6188 GB, free: 15.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006537/0.4368, allocations: 99.84 kB / 0.6189 GB, free: 15.61 MB / 442.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 () * 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 (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.0001231/0.4369, allocations: 119.4 kB / 0.619 GB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004735/0.4374, allocations: 286.1 kB / 0.6193 GB, free: 15.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4374, allocations: 4.312 kB / 0.6193 GB, free: 15.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.4375, allocations: 95.77 kB / 0.6194 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009404/0.4385, allocations: 67.36 kB / 0.6194 GB, free: 15.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/0.4408, allocations: 1.928 MB / 0.6213 GB, free: 13.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.4411, allocations: 0.7992 MB / 0.6221 GB, free: 12.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.69e-05/0.4412, allocations: 31.42 kB / 0.6221 GB, free: 12.2 MB / 442.7 MB Notification: Performance of SimCode: time 4.4e-07/0.4412, allocations: 0 / 0.6221 GB, free: 12.2 MB / 442.7 MB Notification: Performance of Templates: time 0.006327/0.4476, allocations: 4.064 MB / 0.6261 GB, free: 8.148 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches