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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000889/0.0008889, allocations: 94.05 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1831/0.1831, allocations: 45.15 MB / 383.4 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.863e-06, allocations: 0 / 452.6 MB, free: 76.22 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1183, allocations: 63.24 MB / 0.5038 GB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3654/0.4838, allocations: 88.31 MB / 0.59 GB, free: 14.67 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.4841, allocations: 67.14 kB / 0.5901 GB, free: 14.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01669/0.5008, allocations: 5.995 MB / 0.5959 GB, free: 9.777 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.5009, allocations: 8 kB / 0.5959 GB, free: 9.77 MB / 394.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.0008062/0.5017, allocations: 0.569 MB / 0.5965 GB, free: 9.176 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.5018, allocations: 8.031 kB / 0.5965 GB, free: 9.168 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003226/0.5021, allocations: 67.52 kB / 0.5966 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.5024, allocations: 259.8 kB / 0.5968 GB, free: 8.824 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.5024, allocations: 12 kB / 0.5968 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.5025, allocations: 31.78 kB / 0.5969 GB, free: 8.785 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003185/0.5028, allocations: 159.9 kB / 0.597 GB, free: 8.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/0.5033, allocations: 327.3 kB / 0.5973 GB, free: 8.395 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/0.5033, allocations: 4 kB / 0.5973 GB, free: 8.391 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.5034, allocations: 3.906 kB / 0.5973 GB, free: 8.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.5034, allocations: 12 kB / 0.5973 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.5055, allocations: 1.648 MB / 0.5989 GB, free: 6.809 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.5058, allocations: 197.9 kB / 0.5991 GB, free: 6.59 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.5059, allocations: 76.58 kB / 0.5992 GB, free: 6.508 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.5059, allocations: 7.938 kB / 0.5992 GB, free: 6.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.506, allocations: 56.59 kB / 0.5993 GB, free: 6.441 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.843e-06/0.506, allocations: 0 / 0.5993 GB, free: 6.441 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004604/0.5065, allocations: 165.3 kB / 0.5994 GB, free: 6.297 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.5066, allocations: 213.6 kB / 0.5996 GB, free: 6.039 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.5068, allocations: 211.3 kB / 0.5998 GB, free: 5.852 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.5068, allocations: 29.64 kB / 0.5999 GB, free: 5.816 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.507, allocations: 227.1 kB / 0.6001 GB, free: 5.609 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.222e-05/0.5071, allocations: 115.6 kB / 0.6002 GB, free: 5.512 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.5071, allocations: 0 / 0.6002 GB, free: 5.512 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.5072, allocations: 344.3 kB / 0.6005 GB, free: 5.18 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.5074, allocations: 74.19 kB / 0.6006 GB, free: 5.137 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.5078, allocations: 392.3 kB / 0.601 GB, free: 4.633 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.508, allocations: 147.1 kB / 0.6011 GB, free: 4.527 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.508, allocations: 4 kB / 0.6011 GB, free: 4.523 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006556/0.5087, allocations: 422.6 kB / 0.6015 GB, free: 4.164 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.5087, allocations: 4 kB / 0.6015 GB, free: 4.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.5087, allocations: 12.91 kB / 0.6015 GB, free: 4.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.055e-05/0.5087, allocations: 16 kB / 0.6015 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.5092, allocations: 155.3 kB / 0.6017 GB, free: 3.984 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.373e-05/0.5093, allocations: 27.86 kB / 0.6017 GB, free: 3.957 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.5095, allocations: 47.44 kB / 0.6018 GB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.5096, allocations: 31.44 kB / 0.6018 GB, free: 3.883 MB / 394.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.0001193/0.5097, allocations: 144 kB / 0.6019 GB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.5099, allocations: 35.06 kB / 0.602 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.371e-05/0.51, allocations: 28.14 kB / 0.602 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.51, allocations: 4 kB / 0.602 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.51, allocations: 4 kB / 0.602 GB, free: 3.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.51, allocations: 0 / 0.602 GB, free: 3.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.5111, allocations: 0.587 MB / 0.6026 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.5111, allocations: 0 / 0.6026 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.5116, allocations: 95.25 kB / 0.6027 GB, free: 3.016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.5116, allocations: 4 kB / 0.6027 GB, free: 3.012 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.5117, allocations: 7.938 kB / 0.6027 GB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.5117, allocations: 4 kB / 0.6027 GB, free: 3.004 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/0.5117, allocations: 15.83 kB / 0.6027 GB, free: 2.988 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006762/0.5124, allocations: 0.8754 MB / 0.6035 GB, free: 2.082 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.5124, allocations: 108.2 kB / 0.6036 GB, free: 1.961 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.5125, allocations: 4 kB / 0.6037 GB, free: 1.957 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/0.5129, allocations: 15.98 kB / 0.6037 GB, free: 1.941 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.534e-05/0.5129, allocations: 19.39 kB / 0.6037 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.513, allocations: 11.98 kB / 0.6037 GB, free: 1.914 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001292/0.5131, allocations: 155.1 kB / 0.6038 GB, free: 1.789 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006822/0.5138, allocations: 87.78 kB / 0.6039 GB, free: 1.703 MB / 394.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.0001525/0.5139, allocations: 103.2 kB / 0.604 GB, free: 1.594 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003371/0.5143, allocations: 236.8 kB / 0.6043 GB, free: 1.414 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5143, allocations: 0 / 0.6043 GB, free: 1.414 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.5144, allocations: 82.3 kB / 0.6043 GB, free: 1.348 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000613/0.515, allocations: 46.81 kB / 0.6044 GB, free: 1.312 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.5171, allocations: 1.44 MB / 0.6058 GB, free: 15.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/0.5176, allocations: 0.8299 MB / 0.6066 GB, free: 15 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5176, allocations: 7.938 kB / 0.6066 GB, free: 14.99 MB / 410.7 MB Notification: Performance of Templates: time 0.006862/0.5244, allocations: 2.876 MB / 0.6094 GB, free: 12.15 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