Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001385/0.001384, allocations: 121.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.001462/0.001462, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247 MB, free: 10.44 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.232/0.232, allocations: 46.13 MB / 344.4 MB, free: 11.45 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.002268/0.002268, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3401, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.0161/0.3562, allocations: 13.38 MB / 0.5437 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.3671, allocations: 4.805 MB / 0.5483 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003447/0.3707, allocations: 94.78 kB / 0.5484 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007819/0.3785, allocations: 3.73 MB / 0.5521 GB, free: 11.65 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008593/0.3872, allocations: 2.155 MB / 0.5542 GB, free: 9.488 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004269/0.3915, allocations: 1.069 MB / 0.5552 GB, free: 8.418 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01162/0.4031, allocations: 6.67 MB / 0.5617 GB, free: 1.734 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006219/0.4094, allocations: 4.501 MB / 0.5661 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004037/0.4135, allocations: 2.017 MB / 0.5681 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.4181, allocations: 2.742 MB / 0.5708 GB, free: 8.395 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001264/0.4194, allocations: 428 kB / 0.5712 GB, free: 7.977 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00353/0.423, allocations: 1.432 MB / 0.5726 GB, free: 6.543 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002962/0.4259, allocations: 2.443 MB / 0.575 GB, free: 4.094 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004514/0.4305, allocations: 2.828 MB / 0.5777 GB, free: 1.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.4431, allocations: 8.943 MB / 0.5865 GB, free: 8.273 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.4431, allocations: 0 / 0.5865 GB, free: 8.273 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4431, allocations: 0 / 0.5865 GB, free: 8.273 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002859/0.4434, allocations: 4 kB / 0.5865 GB, free: 8.27 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01802/0.4615, allocations: 6.593 MB / 0.5929 GB, free: 1.594 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.4615, allocations: 8.031 kB / 0.5929 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00183/0.4634, allocations: 0.9043 MB / 0.5938 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03911/0.5025, allocations: 6.051 MB / 0.5997 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.5127, allocations: 4.666 MB / 0.6043 GB, free: 5.887 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002921/0.513, allocations: 287.4 kB / 0.6045 GB, free: 5.605 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001605/0.5146, allocations: 391.7 kB / 0.6049 GB, free: 5.223 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02549/0.5401, allocations: 11.91 MB / 0.6165 GB, free: 8.527 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002037/0.5404, allocations: 63.52 kB / 0.6166 GB, free: 8.465 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007264/0.5411, allocations: 179.8 kB / 0.6168 GB, free: 8.289 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003728/0.5449, allocations: 2.136 MB / 0.6189 GB, free: 6.152 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0225/0.5674, allocations: 10.17 MB / 0.6288 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06455/0.632, allocations: 47.13 MB / 0.6748 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01498/0.6471, allocations: 5.786 MB / 0.6805 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00421/0.6513, allocations: 2.938 MB / 0.6833 GB, free: 2.609 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/0.6654, allocations: 8.769 MB / 0.6919 GB, free: 9.676 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/0.6655, allocations: 51.88 kB / 0.6919 GB, free: 9.617 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 5.28e-06/0.6655, allocations: 0 / 0.6919 GB, free: 9.617 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.4222/1.088, allocations: 34.98 MB / 0.7261 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/1.088, allocations: 209 kB / 0.7263 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007454/1.095, allocations: 4.804 MB / 0.731 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005468/1.096, allocations: 61.42 kB / 0.7311 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001833/1.098, allocations: 3.728 MB / 0.7347 GB, free: 158 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008798/1.099, allocations: 1.008 MB / 0.7357 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001473/1.1, allocations: 1.355 MB / 0.737 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.188e-05/1.1, allocations: 304.9 kB / 0.7373 GB, free: 156.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003199/1.103, allocations: 3.03 MB / 0.7403 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004454/1.108, allocations: 6.835 MB / 0.7469 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008686/1.117, allocations: 10.68 MB / 0.7574 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.038e-05/1.117, allocations: 36 kB / 0.7574 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02191/1.139, allocations: 13.23 MB / 0.7703 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.049e-05/1.139, allocations: 66.06 kB / 0.7704 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/1.139, allocations: 136 kB / 0.7705 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01068/1.15, allocations: 4.222 MB / 0.7746 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003989/1.154, allocations: 1.411 MB / 0.776 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03043/1.184, allocations: 28.59 MB / 0.8039 GB, free: 90.47 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005417/1.189, allocations: 395.5 kB / 0.8043 GB, free: 90.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008309/1.19, allocations: 400 kB / 0.8047 GB, free: 89.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (756): * Single equations (assignments): 750 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.003296/1.194, allocations: 2.458 MB / 0.8071 GB, free: 87.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008364/1.194, allocations: 476.7 kB / 0.8075 GB, free: 86.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01373/1.208, allocations: 8.234 MB / 0.8156 GB, free: 78.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.922e-05/1.208, allocations: 28 kB / 0.8156 GB, free: 78.47 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.149e-05/1.208, allocations: 12 kB / 0.8156 GB, free: 78.46 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-05/1.208, allocations: 11.95 kB / 0.8156 GB, free: 78.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02508/1.233, allocations: 16.74 MB / 0.832 GB, free: 61.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-05/1.234, allocations: 4 kB / 0.832 GB, free: 61.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/1.235, allocations: 300.2 kB / 0.8323 GB, free: 61.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009309/1.244, allocations: 3.801 MB / 0.836 GB, free: 57.49 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000437/1.245, allocations: 47.94 kB / 0.836 GB, free: 57.44 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02819/1.273, allocations: 27.36 MB / 0.8627 GB, free: 29.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/1.273, allocations: 7.938 kB / 0.8628 GB, free: 29.65 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01786/1.291, allocations: 12.14 MB / 0.8746 GB, free: 17.37 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.292, allocations: 0.5057 MB / 0.8751 GB, free: 16.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008408/1.293, allocations: 51.28 kB / 0.8751 GB, free: 16.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002224/1.295, allocations: 167.7 kB / 0.8753 GB, free: 16.63 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007235/1.296, allocations: 196.2 kB / 0.8755 GB, free: 16.44 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001857/1.296, allocations: 72 kB / 0.8756 GB, free: 16.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003688/1.3, allocations: 3.035 MB / 0.8785 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/1.3, allocations: 0 / 0.8785 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005938/1.306, allocations: 1.406 MB / 0.8799 GB, free: 11.94 MB / 0.5606 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01901/1.325, allocations: 12.83 MB / 0.8924 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01627/1.341, allocations: 8.201 MB / 0.9004 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.341, allocations: 4 kB / 0.9004 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006676/1.348, allocations: 3.511 MB / 0.9039 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004704/1.353, allocations: 0.6081 MB / 0.9045 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3916/1.744, allocations: 64.22 MB / 0.9672 GB, free: 201.1 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003521/1.748, allocations: 3.923 MB / 0.971 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003584/1.751, allocations: 2.01 MB / 0.973 GB, free: 199.8 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002399/1.754, allocations: 2.366 MB / 0.9753 GB, free: 197.9 MB / 0.6231 GB Notification: Performance of SimCode: time 9.92e-07/1.754, allocations: 0 / 0.9753 GB, free: 197.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1552/1.909, allocations: 112.9 MB / 1.086 GB, free: 89.27 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.43/24.34, allocations: 19.55 kB / 1.086 GB, free: 89.25 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1)