Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Rotor1D,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D",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 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 178.3 kB / 8.518 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.154/1.154, allocations: 221.4 MB / 230.3 MB, free: 7.684 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008969/0.0008969, allocations: 85.98 kB / 281.2 MB, free: 5.5 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1598/0.1598, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1639/0.3238, allocations: 68.02 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08814/0.412, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2388/0.6508, allocations: 95.55 MB / 0.5875 GB, free: 1.156 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.6511, allocations: 72.62 kB / 0.5876 GB, free: 1.086 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: 1705 * Number of variables: 1705 Notification: Performance of Generate backend data structure: time 0.29/0.9411, allocations: 98.85 MB / 0.6841 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.9412, allocations: 15.94 kB / 0.6841 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008489/0.9497, allocations: 1.756 MB / 0.6858 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007353/0.957, allocations: 3.422 MB / 0.6892 GB, free: 8.223 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.9572, allocations: 148 kB / 0.6893 GB, free: 8.078 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001268/0.9585, allocations: 291.7 kB / 0.6896 GB, free: 7.797 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1372/1.096, allocations: 9.966 MB / 0.6993 GB, free: 166.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/1.112, allocations: 13.47 MB / 0.7125 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/1.112, allocations: 62.47 kB / 0.7125 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007693/1.113, allocations: 30.44 kB / 0.7126 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001862/1.115, allocations: 1.149 MB / 0.7137 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05459/1.17, allocations: 53.92 MB / 0.7663 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007169/1.177, allocations: 6.862 MB / 0.773 GB, free: 130 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002993/1.18, allocations: 2.914 MB / 0.7759 GB, free: 129 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006524/1.186, allocations: 6.454 MB / 0.7822 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/1.187, allocations: 53.11 kB / 0.7822 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=176): time 3.576e-06/1.187, allocations: 0 / 0.7822 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=176): time 0.003125/1.19, allocations: 2.677 MB / 0.7848 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/1.19, allocations: 146.4 kB / 0.785 GB, free: 123.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003915/1.194, allocations: 3.801 MB / 0.7887 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.547e-05/1.194, allocations: 25.7 kB / 0.7887 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001069/1.195, allocations: 3.342 MB / 0.792 GB, free: 119.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/1.195, allocations: 0.7125 MB / 0.7927 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/1.195, allocations: 0 / 0.7927 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002534/1.196, allocations: 0.5926 MB / 0.7933 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002676/1.198, allocations: 2.16 MB / 0.7954 GB, free: 117.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004004/1.202, allocations: 6.516 MB / 0.8017 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004307/1.207, allocations: 3.754 MB / 0.8054 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.409e-05/1.207, allocations: 44 kB / 0.8054 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=897) (initialization): time 0.009444/1.216, allocations: 7.69 MB / 0.813 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/1.216, allocations: 4 kB / 0.813 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/1.216, allocations: 163.9 kB / 0.8131 GB, free: 103 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001568/1.216, allocations: 228 kB / 0.8133 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004829/1.221, allocations: 1.65 MB / 0.8149 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001378/1.221, allocations: 313.6 kB / 0.8152 GB, free: 101 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004324/1.226, allocations: 0.7534 MB / 0.816 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005412/1.226, allocations: 457.7 kB / 0.8164 GB, free: 99.86 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 719 * Number of states: 0 () * Number of discrete variables: 42 (rotor1D10.cylinderColor[3],rotor1D10.cylinderColor[2],rotor1D10.cylinderColor[1],rotor1D9.cylinderColor[3],rotor1D9.cylinderColor[2],rotor1D9.cylinderColor[1],rotor1D8.cylinderColor[3],rotor1D8.cylinderColor[2],rotor1D8.cylinderColor[1],rotor1D7.cylinderColor[3],rotor1D7.cylinderColor[2],rotor1D7.cylinderColor[1],rotor1D6.cylinderColor[3],rotor1D6.cylinderColor[2],rotor1D6.cylinderColor[1],rotor1D5.cylinderColor[3],rotor1D5.cylinderColor[2],rotor1D5.cylinderColor[1],rotor1D4.cylinderColor[3],rotor1D4.cylinderColor[2],rotor1D4.cylinderColor[1],rotor1D3.cylinderColor[3],rotor1D3.cylinderColor[2],rotor1D3.cylinderColor[1],rotor1D2.cylinderColor[3],rotor1D2.cylinderColor[2],rotor1D2.cylinderColor[1],rotor1D1.cylinderColor[3],rotor1D1.cylinderColor[2],rotor1D1.cylinderColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (873): * Single equations (assignments): 870 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006588/1.227, allocations: 497.5 kB / 0.8169 GB, free: 99.36 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005074/1.228, allocations: 375 kB / 0.8172 GB, free: 99 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003242/1.231, allocations: 2.475 MB / 0.8197 GB, free: 96.95 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-05/1.231, allocations: 20 kB / 0.8197 GB, free: 96.93 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/1.231, allocations: 4 kB / 0.8197 GB, free: 96.93 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/1.231, allocations: 10.33 kB / 0.8197 GB, free: 96.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004597/1.235, allocations: 3.213 MB / 0.8228 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/1.236, allocations: 0 / 0.8228 GB, free: 94.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/1.237, allocations: 334.4 kB / 0.8232 GB, free: 94.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/1.237, allocations: 8 kB / 0.8232 GB, free: 94.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/1.238, allocations: 10.81 kB / 0.8232 GB, free: 94.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/1.238, allocations: 8 kB / 0.8232 GB, free: 94.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.238, allocations: 0 / 0.8232 GB, free: 94.14 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004429/1.242, allocations: 4.887 MB / 0.8279 GB, free: 89.71 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006193/1.248, allocations: 7.012 MB / 0.8348 GB, free: 83.35 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006496/1.249, allocations: 462.3 kB / 0.8352 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005051/1.249, allocations: 11.84 kB / 0.8352 GB, free: 82.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/1.251, allocations: 24.81 kB / 0.8353 GB, free: 82.87 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/1.251, allocations: 85.78 kB / 0.8354 GB, free: 82.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/1.251, allocations: 51.33 kB / 0.8354 GB, free: 82.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002942/1.254, allocations: 2.565 MB / 0.8379 GB, free: 80.51 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004927/1.259, allocations: 1.232 MB / 0.8391 GB, free: 79.28 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 20 (rotor1D1.phi,rotor1D1.w,rotor1D2.phi,rotor1D2.w,rotor1D3.phi,rotor1D3.w,rotor1D4.phi,rotor1D4.w,rotor1D5.phi,rotor1D5.w,rotor1D6.phi,rotor1D6.w,rotor1D7.phi,rotor1D7.w,rotor1D8.phi,rotor1D8.w,rotor1D9.phi,rotor1D9.w,rotor1D10.phi,rotor1D10.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 169 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003009/1.259, allocations: 153.7 kB / 0.8393 GB, free: 79.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005308/1.265, allocations: 4.839 MB / 0.844 GB, free: 74.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.265, allocations: 0 / 0.844 GB, free: 74.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001268/1.266, allocations: 1.283 MB / 0.8452 GB, free: 73.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/1.267, allocations: 376.5 kB / 0.8456 GB, free: 73.02 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/1.279, allocations: 8.728 MB / 0.8541 GB, free: 64.33 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004103/1.283, allocations: 4.051 MB / 0.8581 GB, free: 60.27 MB / 0.4948 GB Notification: Performance of SimCode: time 3.41e-07/1.283, allocations: 0 / 0.8581 GB, free: 60.27 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_InitializationConversion_Rotor1D.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe 2>&1)