Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001335/0.001335, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 210.4 kB / 18.58 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2311/0.2311, allocations: 46.11 MB / 344.2 MB, free: 11.6 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003683/0.003683, allocations: 83.59 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1878, allocations: 62.46 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.0279/0.2157, allocations: 12.64 MB / 492.8 MB, free: 8.469 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.2317, allocations: 4.067 MB / 496.9 MB, free: 4.391 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003271/0.235, allocations: 67.81 kB / 497 MB, free: 4.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007045/0.2422, allocations: 1.841 MB / 498.8 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007984/0.2502, allocations: 1.755 MB / 0.4888 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002522/0.2527, allocations: 0.4912 MB / 0.4893 GB, free: 228 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009201/0.262, allocations: 3.77 MB / 0.493 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006718/0.2687, allocations: 2.86 MB / 0.4958 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003452/0.2722, allocations: 1.327 MB / 0.4971 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004622/0.2769, allocations: 1.873 MB / 0.4989 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00128/0.2782, allocations: 280 kB / 0.4992 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004032/0.2823, allocations: 1.096 MB / 0.5003 GB, free: 4.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003475/0.2858, allocations: 1.741 MB / 0.502 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005392/0.2912, allocations: 2.065 MB / 0.504 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2128/0.5041, allocations: 6.583 MB / 0.5104 GB, free: 16.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.5041, allocations: 1.156 kB / 0.5104 GB, free: 16.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5042, allocations: 1.203 kB / 0.5104 GB, free: 16.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002976/0.5045, allocations: 0 / 0.5104 GB, free: 16.98 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1622 * Number of variables: 1622 Notification: Performance of Generate backend data structure: time 0.01579/0.5203, allocations: 4.794 MB / 0.5151 GB, free: 15.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.5203, allocations: 10.31 kB / 0.5151 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001907/0.5222, allocations: 0.759 MB / 0.5158 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01081/0.5331, allocations: 3.115 MB / 0.5189 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005577/0.5387, allocations: 2.256 MB / 0.5211 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/0.5389, allocations: 214.3 kB / 0.5213 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/0.5406, allocations: 285.3 kB / 0.5216 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01994/0.5605, allocations: 10.95 MB / 0.5323 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001556/0.5607, allocations: 25.88 kB / 0.5323 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001318/0.562, allocations: 138.8 kB / 0.5324 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003717/0.5658, allocations: 2.502 MB / 0.5349 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/0.5835, allocations: 10.28 MB / 0.5449 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06395/0.6475, allocations: 35.09 MB / 0.5792 GB, free: 14.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009973/0.6575, allocations: 4.287 MB / 0.5834 GB, free: 9.777 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003726/0.6613, allocations: 2.121 MB / 0.5854 GB, free: 7.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001894/0.6632, allocations: 1.322 MB / 0.5867 GB, free: 6.125 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.86e-05/0.6633, allocations: 56.56 kB / 0.5868 GB, free: 6.062 MB / 430.1 MB Notification: Performance of pre-optimization done (n=235): time 8.296e-06/0.6633, allocations: 0 / 0.5868 GB, free: 6.062 MB / 430.1 MB Notification: Performance of matching and sorting (n=256): time 0.04783/0.7112, allocations: 13.64 MB / 0.6001 GB, free: 8.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.811e-05/0.7113, allocations: 73.41 kB / 0.6002 GB, free: 8.324 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006029/0.7173, allocations: 2.756 MB / 0.6029 GB, free: 5.555 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005771/0.7179, allocations: 55.12 kB / 0.6029 GB, free: 5.496 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002518/0.7205, allocations: 2.833 MB / 0.6057 GB, free: 2.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001483/0.722, allocations: 0.939 MB / 0.6066 GB, free: 1.746 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002767/0.7247, allocations: 1.123 MB / 0.6077 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.7249, allocations: 313.1 kB / 0.608 GB, free: 312 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004351/0.7293, allocations: 2.297 MB / 0.6102 GB, free: 14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007777/0.7371, allocations: 5.388 MB / 0.6155 GB, free: 7.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/0.7511, allocations: 8.443 MB / 0.6237 GB, free: 13.66 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/0.7513, allocations: 32 kB / 0.6238 GB, free: 13.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02052/0.7718, allocations: 8.402 MB / 0.632 GB, free: 5.648 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.772, allocations: 52 kB / 0.632 GB, free: 5.598 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002286/0.7722, allocations: 108 kB / 0.6321 GB, free: 5.492 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004089/0.7763, allocations: 1.037 MB / 0.6331 GB, free: 4.445 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004892/0.7812, allocations: 1.294 MB / 0.6344 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003474/0.7847, allocations: 2.604 MB / 0.6369 GB, free: 408 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004291/0.789, allocations: 310.7 kB / 0.6372 GB, free: 100 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001199/0.7903, allocations: 328 kB / 0.6376 GB, free: 15.78 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (701): * Single equations (assignments): 692 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00728/0.7976, allocations: 2.173 MB / 0.6397 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/0.7986, allocations: 276.4 kB / 0.6399 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/0.8107, allocations: 4.965 MB / 0.6448 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.676e-05/0.8108, allocations: 47.67 kB / 0.6448 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.8108, allocations: 8 kB / 0.6448 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.734e-05/0.8109, allocations: 11.95 kB / 0.6449 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02693/0.8378, allocations: 11.25 MB / 0.6558 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-05/0.8379, allocations: 8 kB / 0.6558 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/0.8398, allocations: 408.2 kB / 0.6562 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00375/0.8436, allocations: 0.915 MB / 0.6571 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004382/0.844, allocations: 63.97 kB / 0.6572 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003052/0.8471, allocations: 2.401 MB / 0.6595 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/0.8471, allocations: 13.62 kB / 0.6595 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01386/0.861, allocations: 7.375 MB / 0.6667 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008398/0.8619, allocations: 321.4 kB / 0.6671 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009158/0.8628, allocations: 51.94 kB / 0.6671 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/0.8646, allocations: 134.7 kB / 0.6672 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004962/0.8651, allocations: 153.6 kB / 0.6674 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002698/0.8654, allocations: 78.61 kB / 0.6675 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003576/0.869, allocations: 1.689 MB / 0.6691 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.869, allocations: 0 / 0.6691 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005908/0.8749, allocations: 0.948 MB / 0.67 GB, free: 13.99 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * 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 (206): * Single equations (assignments): 197 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01543/0.8904, allocations: 8.046 MB / 0.6779 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01967/0.9101, allocations: 9.989 MB / 0.6876 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/0.9101, allocations: 5.812 kB / 0.6876 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005841/0.916, allocations: 2.565 MB / 0.6902 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004485/0.9205, allocations: 456.6 kB / 0.6906 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.297/1.218, allocations: 45.82 MB / 0.7353 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004615/1.222, allocations: 3.376 MB / 0.7386 GB, free: 186.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004363/1.227, allocations: 2.052 MB / 0.7406 GB, free: 185.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003057/1.23, allocations: 1.849 MB / 0.7424 GB, free: 184 MB / 0.545 GB Notification: Performance of SimCode: time 1.864e-06/1.23, allocations: 0 / 0.7424 GB, free: 184 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1325/1.362, allocations: 61.45 MB / 0.8024 GB, free: 126.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/12.72, allocations: 4.609 kB / 0.8025 GB, free: 126.1 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1)