Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001594/0.001594, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001895, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247 MB, free: 10.46 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.2289/0.2289, allocations: 46.12 MB / 344.4 MB, free: 11.47 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.00221/0.00221, allocations: 79.81 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3604/0.3626, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01688/0.3796, allocations: 15 MB / 0.5452 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.3902, allocations: 4.828 MB / 0.55 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002698/0.3929, allocations: 92.47 kB / 0.55 GB, free: 13.76 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005958/0.3989, allocations: 3.153 MB / 0.5531 GB, free: 10.6 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00889/0.4079, allocations: 2.525 MB / 0.5556 GB, free: 8.066 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003219/0.4111, allocations: 0.9749 MB / 0.5565 GB, free: 7.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01414/0.4253, allocations: 7.04 MB / 0.5634 GB, free: 36 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00841/0.4337, allocations: 4.369 MB / 0.5677 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005865/0.4396, allocations: 2.223 MB / 0.5699 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007995/0.4477, allocations: 3.24 MB / 0.573 GB, free: 6.121 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002765/0.4505, allocations: 484 kB / 0.5735 GB, free: 5.648 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005575/0.4561, allocations: 1.475 MB / 0.5749 GB, free: 4.172 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004629/0.4607, allocations: 2.84 MB / 0.5777 GB, free: 1.324 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008047/0.4688, allocations: 3.293 MB / 0.5809 GB, free: 14.01 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01996/0.4888, allocations: 10.55 MB / 0.5912 GB, free: 3.418 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4889, allocations: 4 kB / 0.5912 GB, free: 3.414 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4889, allocations: 0 / 0.5912 GB, free: 3.414 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003719/0.4892, allocations: 4 kB / 0.5912 GB, free: 3.41 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02839/0.5177, allocations: 7.647 MB / 0.5987 GB, free: 11.67 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.5177, allocations: 8.031 kB / 0.5987 GB, free: 11.66 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003084/0.5208, allocations: 1.141 MB / 0.5998 GB, free: 10.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04526/0.5661, allocations: 7.508 MB / 0.6071 GB, free: 2.98 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.5776, allocations: 4.722 MB / 0.6118 GB, free: 14.2 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/0.5779, allocations: 320.2 kB / 0.6121 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00165/0.5796, allocations: 435.7 kB / 0.6125 GB, free: 13.45 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03115/0.6107, allocations: 15.62 MB / 0.6277 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002428/0.611, allocations: 63.52 kB / 0.6278 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008363/0.6119, allocations: 203.8 kB / 0.628 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005794/0.6177, allocations: 3.22 MB / 0.6311 GB, free: 9.414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03073/0.6484, allocations: 13.95 MB / 0.6448 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08698/0.7355, allocations: 57.2 MB / 0.7006 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01502/0.7506, allocations: 6.518 MB / 0.707 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005583/0.7562, allocations: 3.625 MB / 0.7105 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2834/1.04, allocations: 14.43 MB / 0.7246 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/1.04, allocations: 58.06 kB / 0.7247 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 5.811e-06/1.04, allocations: 1.406 kB / 0.7247 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.1335/1.173, allocations: 42.08 MB / 0.7658 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/1.173, allocations: 217.9 kB / 0.766 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00642/1.18, allocations: 5.491 MB / 0.7713 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008076/1.181, allocations: 69.7 kB / 0.7714 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002009/1.183, allocations: 4.594 MB / 0.7759 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001358/1.184, allocations: 1.311 MB / 0.7772 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002315/1.186, allocations: 1.79 MB / 0.7789 GB, free: 117.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.17e-05/1.186, allocations: 305.1 kB / 0.7792 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005283/1.192, allocations: 4.647 MB / 0.7837 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008228/1.2, allocations: 9.607 MB / 0.7931 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/1.215, allocations: 15.3 MB / 0.8081 GB, free: 82.74 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000135/1.216, allocations: 48 kB / 0.8081 GB, free: 82.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04129/1.257, allocations: 19.03 MB / 0.8267 GB, free: 63.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002182/1.257, allocations: 86.33 kB / 0.8268 GB, free: 63.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003025/1.258, allocations: 172 kB / 0.8269 GB, free: 63.37 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02148/1.279, allocations: 5.778 MB / 0.8326 GB, free: 57.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006503/1.286, allocations: 2.066 MB / 0.8346 GB, free: 55.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02725/1.313, allocations: 25.68 MB / 0.8597 GB, free: 29.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006909/1.32, allocations: 0.5475 MB / 0.8602 GB, free: 29.01 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001494/1.321, allocations: 0.5 MB / 0.8607 GB, free: 28.51 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * 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,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005287/1.327, allocations: 3.101 MB / 0.8637 GB, free: 25.39 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001311/1.328, allocations: 0.5277 MB / 0.8642 GB, free: 24.86 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02986/1.358, allocations: 12.67 MB / 0.8766 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.713e-05/1.358, allocations: 59.98 kB / 0.8767 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-05/1.358, allocations: 8 kB / 0.8767 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.28e-05/1.358, allocations: 19.94 kB / 0.8767 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05496/1.413, allocations: 24.29 MB / 0.9004 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.741e-05/1.413, allocations: 7.938 kB / 0.9004 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003482/1.417, allocations: 0.5817 MB / 0.901 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02015/1.437, allocations: 4.813 MB / 0.9057 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006726/1.437, allocations: 56 kB / 0.9058 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03047/1.468, allocations: 20.91 MB / 0.9262 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/1.468, allocations: 8 kB / 0.9262 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03871/1.507, allocations: 17.15 MB / 0.9429 GB, free: 7.281 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/1.508, allocations: 0.5638 MB / 0.9435 GB, free: 6.695 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001656/1.51, allocations: 52 kB / 0.9435 GB, free: 6.645 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003698/1.514, allocations: 255.6 kB / 0.9438 GB, free: 6.395 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001027/1.515, allocations: 195.3 kB / 0.944 GB, free: 6.203 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005129/1.515, allocations: 87.98 kB / 0.944 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.007794/1.523, allocations: 3.412 MB / 0.9474 GB, free: 2.727 MB / 0.6231 GB Notification: Performance of sort global known variables: time 5.01e-07/1.523, allocations: 0 / 0.9474 GB, free: 2.727 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.3054/1.829, allocations: 1.685 MB / 0.949 GB, free: 206.7 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03449/1.863, allocations: 17.81 MB / 0.9664 GB, free: 202 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01395/1.877, allocations: 10.69 MB / 0.9769 GB, free: 198 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/1.877, allocations: 0 / 0.9769 GB, free: 198 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005363/1.883, allocations: 4.053 MB / 0.9808 GB, free: 196.3 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004876/1.887, allocations: 0.6495 MB / 0.9814 GB, free: 196 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1399/2.027, allocations: 86.34 MB / 1.066 GB, free: 106.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006851/2.034, allocations: 4.619 MB / 1.07 GB, free: 101.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005844/2.04, allocations: 2.986 MB / 1.073 GB, free: 98.61 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003725/2.044, allocations: 2.921 MB / 1.076 GB, free: 95.68 MB / 0.6231 GB Notification: Performance of SimCode: time 1.182e-06/2.044, allocations: 0 / 1.076 GB, free: 95.68 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4816/2.526, allocations: 125.6 MB / 1.199 GB, free: 213.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.69/41.22, allocations: 6.844 kB / 1.199 GB, free: 213.8 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1)