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) 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/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 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=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/ModelicaServices trunk/package.mo): time 0.001374/0.001373, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 46.1 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 75.12 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1096, allocations: 62.45 MB / 479.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004372/0.114, allocations: 2.891 MB / 482.8 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.1156, allocations: 0.7673 MB / 483.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.1159, allocations: 4 kB / 483.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002624/0.1163, allocations: 43.64 kB / 483.6 MB, free: 2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003773/0.1167, allocations: 107.1 kB / 483.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.1171, allocations: 95.84 kB / 483.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005326/0.1176, allocations: 417.9 kB / 484.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.1179, allocations: 117.1 kB / 484.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003271/0.1182, allocations: 155.4 kB / 484.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.1185, allocations: 175.1 kB / 484.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.735e-05/0.1185, allocations: 24 kB / 484.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.1187, allocations: 28 kB / 484.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.966e-05/0.1187, allocations: 71.69 kB / 484.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.119, allocations: 187.1 kB / 485 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003256/0.1193, allocations: 319.5 kB / 485.3 MB, free: 344 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1193, allocations: 0 / 485.3 MB, free: 344 kB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1193, allocations: 0 / 485.3 MB, free: 344 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.1193, allocations: 0 / 485.3 MB, free: 344 kB / 350.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.00108/0.1204, allocations: 0.6512 MB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1205, allocations: 12.88 kB / 486 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003129/0.1208, allocations: 64.44 kB / 486 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.1211, allocations: 280.4 kB / 486.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/0.1212, allocations: 33.36 kB / 486.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-05/0.1213, allocations: 36.38 kB / 486.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006698/0.1219, allocations: 406.4 kB / 486.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.122, allocations: 11.91 kB / 486.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.122, allocations: 16 kB / 486.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.122, allocations: 8 kB / 486.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.1225, allocations: 219.7 kB / 487 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002333/0.1248, allocations: 1.722 MB / 488.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004493/0.1253, allocations: 266.3 kB / 489 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.1255, allocations: 102.1 kB / 489.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.1255, allocations: 4 kB / 489.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.1256, allocations: 46.5 kB / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.073e-06/0.1256, allocations: 0 / 489.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006924/0.1263, allocations: 265 kB / 489.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.1264, allocations: 217.6 kB / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.1267, allocations: 271.2 kB / 489.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.1267, allocations: 33.7 kB / 489.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.1269, allocations: 247.8 kB / 490.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.127, allocations: 118.4 kB / 490.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.1272, allocations: 98.27 kB / 490.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1273, allocations: 346.7 kB / 490.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.1275, allocations: 97.25 kB / 490.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/0.1279, allocations: 432.8 kB / 491.2 MB, free: 9.828 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007234/0.1287, allocations: 0.5667 MB / 491.8 MB, free: 9.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.1287, allocations: 4 kB / 491.8 MB, free: 9.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000823/0.1295, allocations: 0.5287 MB / 492.3 MB, free: 8.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.1296, allocations: 8 kB / 492.3 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.1296, allocations: 12.06 kB / 492.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/0.1296, allocations: 20 kB / 492.4 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004222/0.13, allocations: 147.7 kB / 492.5 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.331e-05/0.1301, allocations: 23.92 kB / 492.5 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003115/0.1304, allocations: 63.38 kB / 492.6 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.1304, allocations: 32 kB / 492.6 MB, free: 8.262 MB / 366.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.0001906/0.1306, allocations: 181.5 kB / 492.8 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.1308, allocations: 31.62 kB / 492.8 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.914e-05/0.1309, allocations: 41.81 kB / 492.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1309, allocations: 4 kB / 492.9 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.1309, allocations: 7.938 kB / 492.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1309, allocations: 0 / 492.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.1322, allocations: 0.6436 MB / 493.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.1322, allocations: 8.562 kB / 493.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004367/0.1327, allocations: 95.94 kB / 493.6 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.1327, allocations: 4 kB / 493.6 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.1327, allocations: 8 kB / 493.6 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-06/0.1327, allocations: 11.94 kB / 493.7 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1327, allocations: 4 kB / 493.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000758/0.1335, allocations: 0.8229 MB / 494.5 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.86e-05/0.1336, allocations: 108.8 kB / 494.6 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.1337, allocations: 16 kB / 494.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003515/0.134, allocations: 11.94 kB / 494.6 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.056e-05/0.1341, allocations: 28.09 kB / 494.6 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.1341, allocations: 4 kB / 494.6 MB, free: 6.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001765/0.1343, allocations: 190 kB / 494.8 MB, free: 5.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1343, allocations: 0 / 494.8 MB, free: 5.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007611/0.1351, allocations: 103.8 kB / 494.9 MB, free: 5.836 MB / 366.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.0001331/0.1352, allocations: 115.1 kB / 495 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005661/0.1358, allocations: 289.3 kB / 495.3 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1358, allocations: 0 / 495.3 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.136, allocations: 97.27 kB / 495.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.137, allocations: 71.36 kB / 495.5 MB, free: 5.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.1394, allocations: 1.698 MB / 497.2 MB, free: 3.512 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.1398, allocations: 0.7953 MB / 498 MB, free: 2.691 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.017e-05/0.1399, allocations: 35.42 kB / 498 MB, free: 2.656 MB / 366.1 MB Notification: Performance of SimCode: time 1.743e-06/0.1399, allocations: 0 / 498 MB, free: 2.656 MB / 366.1 MB Notification: Performance of Templates: time 0.007066/0.147, allocations: 4.146 MB / 0.4904 GB, free: 14.52 MB / 382.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches