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.001308/0.001308, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001498/0.001499, allocations: 214.4 kB / 18.58 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.61 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.2351/0.2351, allocations: 46.11 MB / 344.2 MB, free: 11.59 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.002257/0.002257, allocations: 75 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1235, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01595/0.1395, allocations: 13.37 MB / 493.6 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.1513, allocations: 4.809 MB / 498.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003608/0.155, allocations: 95.69 kB / 498.5 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007979/0.163, allocations: 3.726 MB / 0.4904 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006745/0.1698, allocations: 2.159 MB / 0.4925 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002718/0.1725, allocations: 1.076 MB / 0.4936 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009464/0.182, allocations: 6.665 MB / 0.5001 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005763/0.1878, allocations: 4.502 MB / 0.5045 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2184/0.4063, allocations: 2.016 MB / 0.5065 GB, free: 16.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004901/0.4112, allocations: 2.737 MB / 0.5091 GB, free: 16.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002498/0.4138, allocations: 428.2 kB / 0.5095 GB, free: 16.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004934/0.4187, allocations: 1.436 MB / 0.5109 GB, free: 16.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004971/0.4237, allocations: 2.435 MB / 0.5133 GB, free: 16.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005931/0.4297, allocations: 2.83 MB / 0.5161 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.4408, allocations: 8.659 MB / 0.5245 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.4409, allocations: 0.9688 kB / 0.5245 GB, free: 13.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4409, allocations: 1.125 kB / 0.5245 GB, free: 13.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003186/0.4412, allocations: 3.469 kB / 0.5246 GB, free: 13.55 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.02062/0.4618, allocations: 6.427 MB / 0.5308 GB, free: 9.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.4619, allocations: 9.625 kB / 0.5308 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003137/0.465, allocations: 0.9136 MB / 0.5317 GB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03796/0.503, allocations: 6.01 MB / 0.5376 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/0.5132, allocations: 4.563 MB / 0.5421 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.5134, allocations: 283.8 kB / 0.5423 GB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.515, allocations: 393 kB / 0.5427 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02418/0.5391, allocations: 11.91 MB / 0.5543 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002139/0.5394, allocations: 58.69 kB / 0.5544 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009486/0.5404, allocations: 178.6 kB / 0.5546 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00371/0.5441, allocations: 2.145 MB / 0.5567 GB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02471/0.5688, allocations: 10.16 MB / 0.5666 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06731/0.6362, allocations: 47.27 MB / 0.6127 GB, free: 11.64 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/0.6521, allocations: 5.783 MB / 0.6184 GB, free: 5.715 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004412/0.6566, allocations: 2.938 MB / 0.6213 GB, free: 2.766 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01491/0.6715, allocations: 8.74 MB / 0.6298 GB, free: 9.926 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.638e-05/0.6716, allocations: 58.86 kB / 0.6298 GB, free: 9.863 MB / 478.1 MB Notification: Performance of pre-optimization done (n=206): time 4.779e-06/0.6716, allocations: 0 / 0.6298 GB, free: 9.863 MB / 478.1 MB Notification: Performance of matching and sorting (n=262): time 0.1292/0.8008, allocations: 34.7 MB / 0.6637 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.801, allocations: 209.9 kB / 0.6639 GB, free: 7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008226/0.8092, allocations: 4.792 MB / 0.6686 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007373/0.81, allocations: 61.7 kB / 0.6687 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0032/0.8132, allocations: 3.595 MB / 0.6722 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001351/0.8145, allocations: 0.9681 MB / 0.6731 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002291/0.8168, allocations: 1.348 MB / 0.6744 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.817, allocations: 301.1 kB / 0.6747 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004732/0.8217, allocations: 3.027 MB / 0.6777 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008334/0.8301, allocations: 6.842 MB / 0.6844 GB, free: 252 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01453/0.8446, allocations: 10.67 MB / 0.6948 GB, free: 4.258 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/0.8448, allocations: 36 kB / 0.6948 GB, free: 4.223 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02927/0.8741, allocations: 13.22 MB / 0.7077 GB, free: 7.074 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.165e-05/0.8742, allocations: 62.97 kB / 0.7078 GB, free: 7.016 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/0.8744, allocations: 136 kB / 0.7079 GB, free: 6.883 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01368/0.8881, allocations: 4.234 MB / 0.7121 GB, free: 2.645 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005059/0.8932, allocations: 1.411 MB / 0.7134 GB, free: 1.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2599/1.153, allocations: 28.58 MB / 0.7413 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00676/1.16, allocations: 396.9 kB / 0.7417 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/1.161, allocations: 399.7 kB / 0.7421 GB, free: 176.2 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.004992/1.166, allocations: 2.47 MB / 0.7445 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.168, allocations: 442.9 kB / 0.7449 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01501/1.183, allocations: 8.227 MB / 0.753 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.796e-05/1.183, allocations: 29.62 kB / 0.753 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.012e-05/1.183, allocations: 11.38 kB / 0.753 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.41e-05/1.183, allocations: 15.16 kB / 0.753 GB, free: 172.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03078/1.214, allocations: 16.89 MB / 0.7695 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-05/1.214, allocations: 4 kB / 0.7695 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/1.215, allocations: 297.3 kB / 0.7698 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009629/1.225, allocations: 3.813 MB / 0.7735 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005828/1.225, allocations: 52.03 kB / 0.7736 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02944/1.255, allocations: 27.29 MB / 0.8002 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/1.255, allocations: 11.94 kB / 0.8003 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01895/1.274, allocations: 12.1 MB / 0.8121 GB, free: 116.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/1.275, allocations: 499.2 kB / 0.8125 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001297/1.277, allocations: 51.98 kB / 0.8126 GB, free: 116 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002691/1.279, allocations: 167.6 kB / 0.8128 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008388/1.28, allocations: 182.1 kB / 0.8129 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002017/1.281, allocations: 85.23 kB / 0.813 GB, free: 115.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004926/1.285, allocations: 3.035 MB / 0.816 GB, free: 112.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.31e-07/1.286, allocations: 0 / 0.816 GB, free: 112.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007945/1.293, allocations: 1.405 MB / 0.8173 GB, free: 111.2 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.01903/1.313, allocations: 12.79 MB / 0.8298 GB, free: 98.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01547/1.328, allocations: 9.754 MB / 0.8394 GB, free: 88.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/1.328, allocations: 0 / 0.8394 GB, free: 88.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005773/1.334, allocations: 3.487 MB / 0.8428 GB, free: 84.94 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004584/1.338, allocations: 0.6163 MB / 0.8434 GB, free: 84.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1198/1.458, allocations: 73.68 MB / 0.9153 GB, free: 2.012 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2053/1.664, allocations: 3.91 MB / 0.9191 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006494/1.67, allocations: 2.005 MB / 0.9211 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00418/1.674, allocations: 2.366 MB / 0.9234 GB, free: 187.5 MB / 0.545 GB Notification: Performance of SimCode: time 8.51e-07/1.674, allocations: 0 / 0.9234 GB, free: 187.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1721/1.847, allocations: 116.7 MB / 1.037 GB, free: 92.28 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.88/16.73, allocations: 15.86 kB / 1.037 GB, free: 92.27 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1)