Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) [: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.001553/0.001553, allocations: 197.8 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009271/0.0009271, allocations: 88.89 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.173/0.173, allocations: 45.14 MB / 383.3 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1885/0.3615, allocations: 69.38 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.4706, allocations: 63.25 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2832/0.7538, allocations: 109.8 MB / 0.6111 GB, free: 9.309 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.7541, allocations: 91.83 kB / 0.6111 GB, free: 9.262 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.2191/0.9732, allocations: 84.44 MB / 0.6936 GB, free: 13.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.9732, allocations: 8 kB / 0.6936 GB, free: 13 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00855/0.9818, allocations: 1.827 MB / 0.6954 GB, free: 11.17 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008628/0.9904, allocations: 3.79 MB / 0.6991 GB, free: 7.312 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.9906, allocations: 132 kB / 0.6992 GB, free: 7.184 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007085/0.9913, allocations: 243.8 kB / 0.6995 GB, free: 6.945 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009189/1, allocations: 6.266 MB / 0.7056 GB, free: 0.6719 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01218/1.013, allocations: 9.381 MB / 0.7147 GB, free: 6.309 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/1.013, allocations: 59.47 kB / 0.7148 GB, free: 6.25 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004845/1.013, allocations: 28 kB / 0.7148 GB, free: 6.223 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001311/1.015, allocations: 1.006 MB / 0.7158 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1746/1.189, allocations: 44.73 MB / 0.7595 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003087/1.192, allocations: 3.152 MB / 0.7626 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/1.194, allocations: 1.767 MB / 0.7643 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007799/1.202, allocations: 5.895 MB / 0.77 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/1.202, allocations: 49.81 kB / 0.7701 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=121): time 4.047e-06/1.202, allocations: 0 / 0.7701 GB, free: 167.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=128): time 0.01724/1.219, allocations: 10.48 MB / 0.7803 GB, free: 165.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/1.219, allocations: 140.2 kB / 0.7805 GB, free: 165 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003453/1.223, allocations: 3.039 MB / 0.7834 GB, free: 164.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001016/1.223, allocations: 25.7 kB / 0.7835 GB, free: 164.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001038/1.224, allocations: 2.885 MB / 0.7863 GB, free: 163 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003413/1.224, allocations: 0.5119 MB / 0.7868 GB, free: 162.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/1.224, allocations: 0 / 0.7868 GB, free: 162.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002489/1.225, allocations: 0.5486 MB / 0.7873 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/1.227, allocations: 1.722 MB / 0.789 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003077/1.23, allocations: 5.413 MB / 0.7943 GB, free: 157.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003356/1.233, allocations: 3.052 MB / 0.7973 GB, free: 157.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.827e-05/1.233, allocations: 38.16 kB / 0.7973 GB, free: 157.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.01065/1.244, allocations: 6.836 MB / 0.804 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/1.244, allocations: 6.906 kB / 0.804 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/1.244, allocations: 133.9 kB / 0.8041 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/1.246, allocations: 0.8527 MB / 0.8049 GB, free: 157.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003847/1.25, allocations: 1.313 MB / 0.8062 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00482/1.255, allocations: 4.471 MB / 0.8106 GB, free: 154.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/1.259, allocations: 179.5 kB / 0.8107 GB, free: 154.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005098/1.259, allocations: 365.2 kB / 0.8111 GB, free: 154.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 38 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (701): * Single equations (assignments): 697 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005972/1.26, allocations: 442.5 kB / 0.8115 GB, free: 154.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003943/1.26, allocations: 296.8 kB / 0.8118 GB, free: 153.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004164/1.265, allocations: 2.346 MB / 0.8141 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.112e-05/1.265, allocations: 7.625 kB / 0.8141 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/1.265, allocations: 7.656 kB / 0.8141 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/1.265, allocations: 7.609 kB / 0.8141 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00906/1.274, allocations: 5.595 MB / 0.8196 GB, free: 151.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/1.274, allocations: 7.062 kB / 0.8196 GB, free: 151.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/1.275, allocations: 188.7 kB / 0.8198 GB, free: 151.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/1.277, allocations: 0.6396 MB / 0.8204 GB, free: 151.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/1.277, allocations: 3.781 kB / 0.8204 GB, free: 151.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004912/1.282, allocations: 4.103 MB / 0.8244 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.282, allocations: 4.25 kB / 0.8244 GB, free: 148.9 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006207/1.288, allocations: 4.513 MB / 0.8288 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006918/1.295, allocations: 6.333 MB / 0.835 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000522/1.295, allocations: 348.1 kB / 0.8353 GB, free: 140.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004014/1.296, allocations: 4 kB / 0.8353 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/1.297, allocations: 47.33 kB / 0.8354 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/1.297, allocations: 59.89 kB / 0.8354 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/1.297, allocations: 42.59 kB / 0.8355 GB, free: 140.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002442/1.3, allocations: 2.025 MB / 0.8375 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004481/1.304, allocations: 0.7737 MB / 0.8382 GB, free: 137.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003264/1.305, allocations: 145.8 kB / 0.8383 GB, free: 137.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004724/1.309, allocations: 4.109 MB / 0.8424 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/1.309, allocations: 0 / 0.8424 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00125/1.311, allocations: 1.144 MB / 0.8435 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/1.312, allocations: 313.9 kB / 0.8438 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/1.322, allocations: 6.757 MB / 0.8504 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003379/1.326, allocations: 3.435 MB / 0.8537 GB, free: 124.2 MB / 0.5261 GB Notification: Performance of SimCode: time 9.52e-07/1.326, allocations: 0 / 0.8537 GB, free: 124.2 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1)