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.00139/0.00139, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 246.8 MB, free: 10.57 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.2301/0.2301, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.002262/0.002262, allocations: 79.89 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1272, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.0155/0.1427, allocations: 13.38 MB / 493.6 MB, free: 7.695 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.1535, allocations: 4.805 MB / 498.4 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002536/0.1561, allocations: 95.69 kB / 498.5 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007231/0.1634, allocations: 3.726 MB / 0.4904 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00583/0.1692, allocations: 2.151 MB / 0.4925 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00245/0.1717, allocations: 1.084 MB / 0.4936 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00954/0.1813, allocations: 6.656 MB / 0.5001 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005903/0.1872, allocations: 4.51 MB / 0.5045 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2124/0.3996, allocations: 2.014 MB / 0.5065 GB, free: 16.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004641/0.4043, allocations: 2.742 MB / 0.5091 GB, free: 16.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001642/0.406, allocations: 429 kB / 0.5095 GB, free: 16.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003611/0.4096, allocations: 1.431 MB / 0.5109 GB, free: 16.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003732/0.4133, allocations: 2.438 MB / 0.5133 GB, free: 16.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006039/0.4194, allocations: 2.825 MB / 0.5161 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.4316, allocations: 8.66 MB / 0.5245 GB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.4317, allocations: 1.781 kB / 0.5245 GB, free: 13.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4317, allocations: 0.6562 kB / 0.5245 GB, free: 13.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003894/0.4321, allocations: 0 / 0.5245 GB, free: 13.52 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02046/0.4525, allocations: 6.432 MB / 0.5308 GB, free: 9.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4526, allocations: 8.719 kB / 0.5308 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002291/0.4549, allocations: 0.9179 MB / 0.5317 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03802/0.4929, allocations: 6.012 MB / 0.5376 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/0.5036, allocations: 4.555 MB / 0.5421 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002971/0.504, allocations: 283.7 kB / 0.5423 GB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002036/0.506, allocations: 396.3 kB / 0.5427 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02378/0.5298, allocations: 11.91 MB / 0.5543 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001656/0.53, allocations: 63.52 kB / 0.5544 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005521/0.5306, allocations: 177.7 kB / 0.5546 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003443/0.534, allocations: 2.138 MB / 0.5566 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02092/0.5549, allocations: 10.17 MB / 0.5666 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06282/0.6178, allocations: 47.26 MB / 0.6127 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01531/0.6331, allocations: 5.784 MB / 0.6184 GB, free: 5.676 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004112/0.6373, allocations: 2.947 MB / 0.6213 GB, free: 2.723 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01552/0.6528, allocations: 8.746 MB / 0.6298 GB, free: 9.879 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.641e-05/0.6529, allocations: 58.31 kB / 0.6298 GB, free: 9.816 MB / 478.1 MB Notification: Performance of pre-optimization done (n=206): time 4.589e-06/0.6529, allocations: 0 / 0.6298 GB, free: 9.816 MB / 478.1 MB Notification: Performance of matching and sorting (n=262): time 0.1305/0.7834, allocations: 34.7 MB / 0.6637 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001772/0.7837, allocations: 205.9 kB / 0.6639 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008342/0.792, allocations: 4.788 MB / 0.6686 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000764/0.7928, allocations: 65.7 kB / 0.6687 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003422/0.7962, allocations: 3.588 MB / 0.6722 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001676/0.7979, allocations: 0.9688 MB / 0.6731 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00251/0.8005, allocations: 1.349 MB / 0.6744 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.8006, allocations: 309.1 kB / 0.6747 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004991/0.8056, allocations: 3.03 MB / 0.6777 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008824/0.8145, allocations: 6.838 MB / 0.6844 GB, free: 208 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01536/0.8299, allocations: 10.67 MB / 0.6948 GB, free: 4.211 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001208/0.83, allocations: 40 kB / 0.6948 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.03167/0.8617, allocations: 13.21 MB / 0.7077 GB, free: 7.043 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001625/0.8619, allocations: 64 kB / 0.7078 GB, free: 6.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002368/0.8622, allocations: 132 kB / 0.7079 GB, free: 6.852 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01338/0.8755, allocations: 4.229 MB / 0.712 GB, free: 2.613 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005167/0.8808, allocations: 1.419 MB / 0.7134 GB, free: 1.191 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2899/1.171, allocations: 28.59 MB / 0.7413 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006019/1.177, allocations: 400.5 kB / 0.7417 GB, free: 176 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001123/1.178, allocations: 401.5 kB / 0.7421 GB, free: 175.9 MB / 0.545 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.004797/1.183, allocations: 2.459 MB / 0.7445 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/1.184, allocations: 443.1 kB / 0.7449 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01515/1.199, allocations: 8.238 MB / 0.753 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.323e-05/1.199, allocations: 26.62 kB / 0.753 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.801e-05/1.199, allocations: 11.38 kB / 0.753 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.298e-05/1.199, allocations: 14.97 kB / 0.753 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02804/1.227, allocations: 16.89 MB / 0.7695 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.759e-05/1.227, allocations: 4 kB / 0.7695 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/1.229, allocations: 303.5 kB / 0.7698 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009433/1.238, allocations: 3.803 MB / 0.7735 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005491/1.239, allocations: 51.12 kB / 0.7736 GB, free: 156.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02863/1.267, allocations: 27.3 MB / 0.8002 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/1.267, allocations: 7.938 kB / 0.8003 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01836/1.286, allocations: 12.11 MB / 0.8121 GB, free: 116.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00163/1.287, allocations: 495.1 kB / 0.8126 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001213/1.289, allocations: 52.64 kB / 0.8126 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00263/1.291, allocations: 171.4 kB / 0.8128 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007512/1.292, allocations: 191.2 kB / 0.8129 GB, free: 115.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001889/1.292, allocations: 71.98 kB / 0.813 GB, free: 115.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00415/1.296, allocations: 3.033 MB / 0.816 GB, free: 112.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.41e-07/1.296, allocations: 0 / 0.816 GB, free: 112.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007087/1.303, allocations: 1.406 MB / 0.8174 GB, free: 111.1 MB / 0.545 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.01836/1.322, allocations: 12.79 MB / 0.8298 GB, free: 98.19 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01474/1.337, allocations: 9.757 MB / 0.8394 GB, free: 88.43 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.337, allocations: 0 / 0.8394 GB, free: 88.43 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004847/1.341, allocations: 3.488 MB / 0.8428 GB, free: 84.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003699/1.345, allocations: 0.6163 MB / 0.8434 GB, free: 84.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09465/1.44, allocations: 73.67 MB / 0.9153 GB, free: 1.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2027/1.643, allocations: 3.912 MB / 0.9191 GB, free: 187.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006405/1.649, allocations: 2.007 MB / 0.9211 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003397/1.652, allocations: 2.37 MB / 0.9234 GB, free: 187.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.382e-06/1.652, allocations: 0 / 0.9234 GB, free: 187.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.219/1.871, allocations: 116.6 MB / 1.037 GB, free: 92.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.74/16.61, allocations: 18.67 kB / 1.037 GB, free: 92.31 MB / 0.545 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)