Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009787/0.0009785, allocations: 95.34 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 177 kB / 16.57 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.4 MB / 222.7 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3576/0.3576, allocations: 43.54 MB / 314.5 MB, free: 8.816 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005077/0.0005077, allocations: 16 kB / 383.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1063, allocations: 58.85 MB / 442.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00288/0.1092, allocations: 2.258 MB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.1104, allocations: 0.7376 MB / 445.7 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/0.1107, allocations: 11.94 kB / 445.7 MB, free: 10.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.343e-05/0.1108, allocations: 39.7 kB / 445.8 MB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.1111, allocations: 131.6 kB / 445.9 MB, free: 9.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.1114, allocations: 63.94 kB / 446 MB, free: 9.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004742/0.1119, allocations: 295.4 kB / 446.3 MB, free: 9.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.1121, allocations: 116.2 kB / 446.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002495/0.1124, allocations: 135.5 kB / 446.5 MB, free: 9.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.1126, allocations: 155.3 kB / 446.7 MB, free: 9.133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.645e-05/0.1127, allocations: 20 kB / 446.7 MB, free: 9.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.312e-05/0.1127, allocations: 24 kB / 446.7 MB, free: 9.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.034e-05/0.1128, allocations: 63.75 kB / 446.8 MB, free: 9.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.315e-05/0.1129, allocations: 93.52 kB / 446.9 MB, free: 8.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.1132, allocations: 307.3 kB / 447.2 MB, free: 8.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1132, allocations: 0 / 447.2 MB, free: 8.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.007e-05/0.1132, allocations: 0 / 447.2 MB, free: 8.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.1132, allocations: 3.938 kB / 447.2 MB, free: 8.625 MB / 382.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.0008779/0.1141, allocations: 0.5965 MB / 447.8 MB, free: 7.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1142, allocations: 8.031 kB / 447.8 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.856e-05/0.1143, allocations: 39.53 kB / 447.8 MB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.1146, allocations: 267.2 kB / 448.1 MB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.1146, allocations: 29 kB / 448.1 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.1147, allocations: 40 kB / 448.1 MB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005672/0.1152, allocations: 390.1 kB / 448.5 MB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.1153, allocations: 7.906 kB / 448.5 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.1153, allocations: 16 kB / 448.5 MB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.1153, allocations: 12 kB / 448.6 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004025/0.1158, allocations: 239.7 kB / 448.8 MB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.1179, allocations: 1.727 MB / 450.5 MB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004085/0.1183, allocations: 266.3 kB / 450.8 MB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.1183, allocations: 4 kB / 450.8 MB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.1184, allocations: 46.5 kB / 450.8 MB, free: 4.664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.1184, allocations: 0 / 450.8 MB, free: 4.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006245/0.119, allocations: 273.8 kB / 451.1 MB, free: 4.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.979e-05/0.1191, allocations: 217.6 kB / 451.3 MB, free: 4.129 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.1194, allocations: 274.8 kB / 451.6 MB, free: 3.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1194, allocations: 29.7 kB / 451.6 MB, free: 3.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1196, allocations: 239.4 kB / 451.8 MB, free: 3.582 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.729e-05/0.1196, allocations: 114.4 kB / 451.9 MB, free: 3.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.1197, allocations: 12.06 kB / 452 MB, free: 3.457 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1198, allocations: 346.8 kB / 452.3 MB, free: 3.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.12, allocations: 101.2 kB / 452.4 MB, free: 3.012 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003851/0.1204, allocations: 424.9 kB / 452.8 MB, free: 2.438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/0.1207, allocations: 179.8 kB / 453 MB, free: 2.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1207, allocations: 0 / 453 MB, free: 2.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008265/0.1216, allocations: 0.525 MB / 453.5 MB, free: 1.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1216, allocations: 8 kB / 453.5 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.1216, allocations: 16 kB / 453.5 MB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/0.1217, allocations: 20 kB / 453.6 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.1221, allocations: 148.3 kB / 453.7 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.636e-05/0.1221, allocations: 35.8 kB / 453.7 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/0.1224, allocations: 67.34 kB / 453.8 MB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.1225, allocations: 31.95 kB / 453.8 MB, free: 1.41 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000167/0.1227, allocations: 181.5 kB / 454 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.1228, allocations: 31.7 kB / 454 MB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.977e-05/0.1229, allocations: 37.81 kB / 454.1 MB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.1229, allocations: 4 kB / 454.1 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.1229, allocations: 8 kB / 454.1 MB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.1229, allocations: 0 / 454.1 MB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.1241, allocations: 0.6474 MB / 454.7 MB, free: 440 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1241, allocations: 7.938 kB / 454.7 MB, free: 432 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004089/0.1245, allocations: 91.94 kB / 454.8 MB, free: 340 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1245, allocations: 4.062 kB / 454.8 MB, free: 336 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.1245, allocations: 12 kB / 454.8 MB, free: 324 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.1246, allocations: 7.938 kB / 454.9 MB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1246, allocations: 3.953 kB / 454.9 MB, free: 312 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1873/0.3119, allocations: 0.9295 MB / 455.8 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.3121, allocations: 106.7 kB / 455.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.241e-05/0.3121, allocations: 13.78 kB / 455.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004256/0.3125, allocations: 12.67 kB / 455.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.976e-05/0.3126, allocations: 24.8 kB / 455.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.3127, allocations: 14.27 kB / 456 MB, free: 44.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000187/0.3129, allocations: 179.4 kB / 456.1 MB, free: 44.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3129, allocations: 0 / 456.1 MB, free: 44.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008206/0.3137, allocations: 103.4 kB / 456.2 MB, free: 44.51 MB / 382.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 (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.0001386/0.3138, allocations: 109.7 kB / 456.3 MB, free: 44.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005975/0.3144, allocations: 297.2 kB / 456.6 MB, free: 44.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3145, allocations: 0 / 456.6 MB, free: 44.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.3146, allocations: 93.19 kB / 456.7 MB, free: 44.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006843/0.3153, allocations: 61.22 kB / 456.8 MB, free: 44.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.3173, allocations: 1.889 MB / 458.7 MB, free: 43.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.3175, allocations: 0.8033 MB / 459.5 MB, free: 42.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.3177, allocations: 42.84 kB / 459.5 MB, free: 42.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.008e-05/0.3177, allocations: 28.59 kB / 459.5 MB, free: 42.43 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3177, allocations: 0 / 459.5 MB, free: 42.43 MB / 382.1 MB Notification: Performance of Templates: time 0.005611/0.3233, allocations: 2.642 MB / 462.2 MB, free: 42.26 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches