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.001133/0.001133, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001213, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2029/0.2029, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 76.44 kB / 419 MB, free: 19.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.1007, allocations: 62.44 MB / 481.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004008/0.1048, allocations: 2.866 MB / 484.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.1061, allocations: 0.7751 MB / 485.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.1063, allocations: 11.94 kB / 485.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.1065, allocations: 51.39 kB / 485.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.1067, allocations: 126.9 kB / 485.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.107, allocations: 107.8 kB / 485.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.1074, allocations: 430 kB / 485.8 MB, free: 208 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.1076, allocations: 149.6 kB / 485.9 MB, free: 60 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.1079, allocations: 175.3 kB / 486.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.1081, allocations: 179.2 kB / 486.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/0.1081, allocations: 36 kB / 486.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.802e-05/0.1082, allocations: 32 kB / 486.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.4e-05/0.1083, allocations: 83.67 kB / 486.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.1085, allocations: 199.1 kB / 486.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.1088, allocations: 430.4 kB / 487.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1088, allocations: 0 / 487.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.1089, allocations: 3.984 kB / 487.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.964e-06/0.1089, allocations: 4 kB / 487.1 MB, free: 14.94 MB / 366.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.0008908/0.1098, allocations: 0.6512 MB / 487.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.1098, allocations: 8.031 kB / 487.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002566/0.1101, allocations: 56.45 kB / 487.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.1104, allocations: 288.3 kB / 488.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.1105, allocations: 29.38 kB / 488.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.697e-05/0.1105, allocations: 44.38 kB / 488.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005471/0.1111, allocations: 390.5 kB / 488.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.1111, allocations: 7.906 kB / 488.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.1112, allocations: 23.98 kB / 488.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.1112, allocations: 8 kB / 488.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003964/0.1116, allocations: 219.5 kB / 488.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.1137, allocations: 1.722 MB / 490.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.1141, allocations: 270.2 kB / 490.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.1142, allocations: 90.08 kB / 490.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.1143, allocations: 11.92 kB / 490.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1143, allocations: 42.56 kB / 490.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.523e-06/0.1143, allocations: 0 / 490.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006193/0.1149, allocations: 265.8 kB / 491.2 MB, free: 10.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.908e-05/0.1151, allocations: 217.6 kB / 491.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.1153, allocations: 279.2 kB / 491.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.1154, allocations: 33.7 kB / 491.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.1155, allocations: 235.3 kB / 491.9 MB, free: 9.703 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.6e-05/0.1156, allocations: 114.5 kB / 492 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1157, allocations: 102.2 kB / 492.1 MB, free: 9.484 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1159, allocations: 354.7 kB / 492.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.116, allocations: 93.27 kB / 492.6 MB, free: 9.039 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003723/0.1164, allocations: 432.7 kB / 493 MB, free: 8.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006337/0.1171, allocations: 0.5741 MB / 493.5 MB, free: 7.719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1171, allocations: 4 kB / 493.6 MB, free: 7.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007854/0.1179, allocations: 0.5286 MB / 494.1 MB, free: 7.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1179, allocations: 10.66 kB / 494.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.1179, allocations: 12 kB / 494.1 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.118, allocations: 16 kB / 494.1 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004142/0.1184, allocations: 143.8 kB / 494.3 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.686e-05/0.1184, allocations: 24.45 kB / 494.3 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.1187, allocations: 67.38 kB / 494.3 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-05/0.1187, allocations: 35.98 kB / 494.4 MB, free: 6.879 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.0001646/0.1189, allocations: 177.5 kB / 494.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.1191, allocations: 31.62 kB / 494.6 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.246e-05/0.1191, allocations: 33.83 kB / 494.6 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.1191, allocations: 4 kB / 494.6 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.1191, allocations: 4 kB / 494.6 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.1192, allocations: 3.984 kB / 494.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.1203, allocations: 0.6514 MB / 495.3 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1204, allocations: 4 kB / 495.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.1208, allocations: 87.89 kB / 495.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.1208, allocations: 4 kB / 495.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.1209, allocations: 11.98 kB / 495.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.1209, allocations: 7.938 kB / 495.4 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.1209, allocations: 12 kB / 495.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007375/0.1216, allocations: 0.831 MB / 496.2 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.061e-05/0.1217, allocations: 104.8 kB / 496.3 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/0.1218, allocations: 12 kB / 496.4 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003442/0.1221, allocations: 15.92 kB / 496.4 MB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.1222, allocations: 27.92 kB / 496.4 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.1222, allocations: 11.98 kB / 496.4 MB, free: 4.734 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001596/0.1224, allocations: 182 kB / 496.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1224, allocations: 0 / 496.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006854/0.1231, allocations: 103.8 kB / 496.7 MB, free: 4.457 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.0001221/0.1232, allocations: 111.1 kB / 496.8 MB, free: 4.336 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004802/0.1237, allocations: 298.3 kB / 497.1 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.1237, allocations: 4.125 kB / 497.1 MB, free: 4.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.1239, allocations: 87.77 kB / 497.2 MB, free: 3.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009174/0.1248, allocations: 67.88 kB / 497.2 MB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002094/0.1269, allocations: 1.55 MB / 498.8 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.1273, allocations: 0.795 MB / 499.6 MB, free: 1.473 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.1275, allocations: 47.25 kB / 499.6 MB, free: 1.426 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.187e-05/0.1275, allocations: 27.44 kB / 499.7 MB, free: 1.398 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1275, allocations: 0 / 499.7 MB, free: 1.398 MB / 366.1 MB Notification: Performance of Templates: time 0.006183/0.1337, allocations: 2.927 MB / 0.4908 GB, free: 14.49 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 -s gbode -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