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.001674/0.001674, 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.002045/0.002045, 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.501/1.501, 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.2336/0.2336, allocations: 46.12 MB / 344.2 MB, free: 11.58 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.002284/0.002284, allocations: 75.72 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1561, allocations: 62.45 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01953/0.1757, allocations: 14.99 MB / 495.2 MB, free: 6.094 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.1889, allocations: 4.829 MB / 0.4883 GB, free: 1.254 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004778/0.1937, allocations: 91.75 kB / 0.4884 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007405/0.2012, allocations: 3.149 MB / 0.4915 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008067/0.2093, allocations: 2.514 MB / 0.4939 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002581/0.2119, allocations: 0.9827 MB / 0.4949 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01158/0.2235, allocations: 7.047 MB / 0.5018 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2886/0.5121, allocations: 4.365 MB / 0.506 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005447/0.5176, allocations: 2.213 MB / 0.5082 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007021/0.5247, allocations: 3.242 MB / 0.5114 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00259/0.5273, allocations: 485.1 kB / 0.5118 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005259/0.5326, allocations: 1.478 MB / 0.5133 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006106/0.5388, allocations: 2.836 MB / 0.516 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008455/0.5472, allocations: 3.294 MB / 0.5192 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02139/0.5687, allocations: 10.14 MB / 0.5292 GB, free: 9.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.5687, allocations: 3.938 kB / 0.5292 GB, free: 9.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.339e-06/0.5688, allocations: 5.953 kB / 0.5292 GB, free: 9.133 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005058/0.5693, allocations: 0 / 0.5292 GB, free: 9.133 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02648/0.5958, allocations: 7.465 MB / 0.5365 GB, free: 4.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.5958, allocations: 9.281 kB / 0.5365 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003213/0.599, allocations: 1.144 MB / 0.5376 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04283/0.6419, allocations: 7.47 MB / 0.5449 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01235/0.6543, allocations: 4.621 MB / 0.5494 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003317/0.6547, allocations: 326.8 kB / 0.5497 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002341/0.657, allocations: 435.9 kB / 0.5501 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03601/0.693, allocations: 15.62 MB / 0.5654 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002421/0.6933, allocations: 70.08 kB / 0.5654 GB, free: 11.03 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001053/0.6944, allocations: 202.8 kB / 0.5656 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005981/0.7004, allocations: 3.211 MB / 0.5688 GB, free: 7.723 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03139/0.7318, allocations: 13.95 MB / 0.5824 GB, free: 9.996 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09056/0.8224, allocations: 57.37 MB / 0.6384 GB, free: 15.86 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01496/0.8374, allocations: 6.504 MB / 0.6448 GB, free: 9.109 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005619/0.8431, allocations: 3.623 MB / 0.6483 GB, free: 5.477 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02671/0.8698, allocations: 14.44 MB / 0.6624 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.909e-05/0.8699, allocations: 71.45 kB / 0.6625 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=289): time 5.531e-06/0.8699, allocations: 0 / 0.6625 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of matching and sorting (n=339): time 0.1601/1.03, allocations: 41.74 MB / 0.7032 GB, free: 12.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/1.03, allocations: 214 kB / 0.7034 GB, free: 12.61 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008984/1.039, allocations: 5.482 MB / 0.7088 GB, free: 7.145 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008239/1.04, allocations: 69.7 kB / 0.7089 GB, free: 7.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003634/1.044, allocations: 4.408 MB / 0.7132 GB, free: 2.664 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001998/1.046, allocations: 1.259 MB / 0.7144 GB, free: 1.418 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2639/1.31, allocations: 1.772 MB / 0.7161 GB, free: 192.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.874e-05/1.31, allocations: 301.9 kB / 0.7164 GB, free: 192 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00986/1.32, allocations: 4.65 MB / 0.721 GB, free: 191.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01355/1.333, allocations: 9.611 MB / 0.7303 GB, free: 183 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01788/1.351, allocations: 15.3 MB / 0.7453 GB, free: 171.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002941/1.351, allocations: 55.41 kB / 0.7453 GB, free: 171.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04417/1.396, allocations: 19.01 MB / 0.7639 GB, free: 164.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001431/1.396, allocations: 83.8 kB / 0.764 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002361/1.396, allocations: 172 kB / 0.7641 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02154/1.418, allocations: 5.775 MB / 0.7698 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007173/1.425, allocations: 2.068 MB / 0.7718 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02688/1.452, allocations: 25.65 MB / 0.7969 GB, free: 132.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007999/1.46, allocations: 0.5399 MB / 0.7974 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001956/1.462, allocations: 0.5048 MB / 0.7979 GB, free: 131.9 MB / 0.545 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.006724/1.468, allocations: 3.1 MB / 0.8009 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001304/1.47, allocations: 0.4918 MB / 0.8014 GB, free: 128.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02891/1.499, allocations: 12.69 MB / 0.8138 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.016e-05/1.499, allocations: 56 kB / 0.8138 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.962e-05/1.499, allocations: 8 kB / 0.8138 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.498e-05/1.499, allocations: 21.91 kB / 0.8139 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04621/1.545, allocations: 24.36 MB / 0.8377 GB, free: 91.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.58e-05/1.545, allocations: 4.594 kB / 0.8377 GB, free: 91.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003135/1.548, allocations: 0.585 MB / 0.8382 GB, free: 90.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01832/1.567, allocations: 4.802 MB / 0.8429 GB, free: 85.69 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007469/1.568, allocations: 68.25 kB / 0.843 GB, free: 85.62 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02141/1.589, allocations: 20.89 MB / 0.8634 GB, free: 64.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.589, allocations: 15.88 kB / 0.8634 GB, free: 64.51 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03249/1.621, allocations: 17.11 MB / 0.8801 GB, free: 47.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/1.623, allocations: 0.5297 MB / 0.8806 GB, free: 46.76 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001729/1.625, allocations: 53.25 kB / 0.8807 GB, free: 46.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003546/1.628, allocations: 260.5 kB / 0.8809 GB, free: 46.46 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008357/1.629, allocations: 193.7 kB / 0.8811 GB, free: 46.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000272/1.629, allocations: 86.25 kB / 0.8812 GB, free: 46.19 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004938/1.634, allocations: 3.416 MB / 0.8845 GB, free: 42.79 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/1.634, allocations: 0 / 0.8845 GB, free: 42.79 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008993/1.643, allocations: 1.688 MB / 0.8862 GB, free: 41.11 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 (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.0342/1.678, allocations: 17.79 MB / 0.9036 GB, free: 23.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2494/1.927, allocations: 15.42 MB / 0.9186 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/1.927, allocations: 1.719 kB / 0.9186 GB, free: 188.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006415/1.933, allocations: 4.059 MB / 0.9226 GB, free: 187.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004646/1.938, allocations: 0.6422 MB / 0.9232 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1432/2.081, allocations: 98.42 MB / 1.019 GB, free: 98.36 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006072/2.087, allocations: 4.615 MB / 1.024 GB, free: 93.71 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00679/2.094, allocations: 2.994 MB / 1.027 GB, free: 90.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004612/2.099, allocations: 2.917 MB / 1.03 GB, free: 87.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.543e-06/2.099, allocations: 0 / 1.03 GB, free: 87.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4227/2.522, allocations: 130.7 MB / 1.157 GB, free: 164.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/15.32, allocations: 10.08 kB / 1.157 GB, free: 164.8 MB / 0.545 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_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_UniversalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1)