Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009944/0.0009999, allocations: 95.89 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009849/0.0009851, allocations: 176.6 kB / 16.56 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.676/1.676, allocations: 205.4 MB / 222.7 MB, free: 5.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4618/0.4618, allocations: 43.54 MB / 314.5 MB, free: 8.762 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005222/0.0005223, allocations: 12 kB / 384 MB, free: 7.945 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1589, allocations: 58.85 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3268/0.4857, allocations: 40.25 MB / 483.1 MB, free: 26.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02773/0.5135, allocations: 9.985 MB / 493.1 MB, free: 19.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01356/0.5271, allocations: 200.8 kB / 493.3 MB, free: 19.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00866/0.5358, allocations: 1.969 MB / 495.2 MB, free: 18.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02435/0.5602, allocations: 5.842 MB / 0.4893 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006066/0.5663, allocations: 0.759 MB / 0.4901 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04972/0.6161, allocations: 27.34 MB / 0.5168 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007835/0.6239, allocations: 4.233 MB / 0.5209 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005609/0.6296, allocations: 1.184 MB / 0.5221 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005063/0.6348, allocations: 1.745 MB / 0.5238 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001939/0.6367, allocations: 176 kB / 0.5239 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00397/0.6407, allocations: 1.057 MB / 0.525 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003784/0.6446, allocations: 1.816 MB / 0.5267 GB, free: 9.91 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002923/0.6475, allocations: 0.8933 MB / 0.5276 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01098/0.6585, allocations: 6.162 MB / 0.5336 GB, free: 2.836 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.6586, allocations: 0 / 0.5336 GB, free: 2.836 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.6586, allocations: 0 / 0.5336 GB, free: 2.836 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003713/0.659, allocations: 0 / 0.5336 GB, free: 2.836 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.019/0.678, allocations: 4.891 MB / 0.5384 GB, free: 13.87 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.754e-05/0.6781, allocations: 8.031 kB / 0.5384 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003263/0.6814, allocations: 0.8004 MB / 0.5392 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04409/0.7255, allocations: 7.894 MB / 0.5469 GB, free: 5.141 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01149/0.737, allocations: 3.846 MB / 0.5507 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002648/0.7374, allocations: 242.1 kB / 0.5509 GB, free: 1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001707/0.7391, allocations: 343.6 kB / 0.5512 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02493/0.764, allocations: 10.87 MB / 0.5618 GB, free: 5.051 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002073/0.7643, allocations: 51.59 kB / 0.5619 GB, free: 5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000737/0.765, allocations: 159.8 kB / 0.562 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003863/0.7689, allocations: 2.006 MB / 0.564 GB, free: 2.836 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02433/0.7933, allocations: 9.34 MB / 0.5731 GB, free: 9.477 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07137/0.8647, allocations: 41.19 MB / 0.6133 GB, free: 15.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.877, allocations: 4.248 MB / 0.6175 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01655/0.8937, allocations: 7.603 MB / 0.6249 GB, free: 2.734 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.756e-05/0.8938, allocations: 51.56 kB / 0.625 GB, free: 2.676 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 5.501e-06/0.8938, allocations: 0 / 0.625 GB, free: 2.676 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.5274/1.421, allocations: 41.54 MB / 0.6655 GB, free: 135.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/1.421, allocations: 211.8 kB / 0.6657 GB, free: 135.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008663/1.43, allocations: 4.581 MB / 0.6702 GB, free: 133.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007682/1.431, allocations: 57.58 kB / 0.6703 GB, free: 133.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002484/1.433, allocations: 3.223 MB / 0.6734 GB, free: 130.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001635/1.435, allocations: 0.8854 MB / 0.6743 GB, free: 129.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003761/1.435, allocations: 119.2 kB / 0.6744 GB, free: 129.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003559/1.436, allocations: 0.5694 MB / 0.6749 GB, free: 129.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005338/1.441, allocations: 3.47 MB / 0.6783 GB, free: 127.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006524/1.448, allocations: 7.06 MB / 0.6852 GB, free: 120.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006255/1.454, allocations: 4.805 MB / 0.6899 GB, free: 117.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.539e-05/1.454, allocations: 36 kB / 0.69 GB, free: 117.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03792/1.492, allocations: 15.67 MB / 0.7053 GB, free: 101.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.766e-05/1.492, allocations: 64.03 kB / 0.7053 GB, free: 101.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001217/1.492, allocations: 128 kB / 0.7054 GB, free: 101.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02255/1.515, allocations: 6.112 MB / 0.7114 GB, free: 95.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005624/1.52, allocations: 1.431 MB / 0.7128 GB, free: 93.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03053/1.551, allocations: 26.38 MB / 0.7386 GB, free: 67.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007688/1.559, allocations: 395.4 kB / 0.7389 GB, free: 66.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001382/1.56, allocations: 385.1 kB / 0.7393 GB, free: 66.58 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00513/1.565, allocations: 2.225 MB / 0.7415 GB, free: 64.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/1.567, allocations: 394.8 kB / 0.7419 GB, free: 63.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02726/1.594, allocations: 11.07 MB / 0.7527 GB, free: 52.86 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.565e-05/1.594, allocations: 28 kB / 0.7527 GB, free: 52.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.29e-05/1.594, allocations: 11.95 kB / 0.7527 GB, free: 52.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.001e-05/1.594, allocations: 13.45 kB / 0.7527 GB, free: 52.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0488/1.643, allocations: 20.6 MB / 0.7728 GB, free: 31.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.633e-05/1.643, allocations: 8 kB / 0.7729 GB, free: 31.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/1.646, allocations: 384 kB / 0.7732 GB, free: 31.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0201/1.666, allocations: 5.183 MB / 0.7783 GB, free: 26.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007807/1.667, allocations: 44 kB / 0.7783 GB, free: 26.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02599/1.693, allocations: 21.48 MB / 0.7993 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1.693, allocations: 15.94 kB / 0.7993 GB, free: 4.387 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3934/2.086, allocations: 14.9 MB / 0.8139 GB, free: 141.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003838/2.09, allocations: 0.989 MB / 0.8148 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/2.091, allocations: 44.27 kB / 0.8149 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/2.094, allocations: 180 kB / 0.8151 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007612/2.095, allocations: 153.6 kB / 0.8152 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002353/2.095, allocations: 63.5 kB / 0.8153 GB, free: 141.1 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006052/2.101, allocations: 2.926 MB / 0.8181 GB, free: 140.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.61e-07/2.101, allocations: 0 / 0.8181 GB, free: 140.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008929/2.11, allocations: 1.354 MB / 0.8194 GB, free: 140.9 MB / 0.4981 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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04002/2.15, allocations: 16.73 MB / 0.8358 GB, free: 135.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01894/2.169, allocations: 8.048 MB / 0.8436 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/2.169, allocations: 1.125 kB / 0.8436 GB, free: 132.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.006559/2.176, allocations: 3.17 MB / 0.8467 GB, free: 130.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004858/2.181, allocations: 491.8 kB / 0.8472 GB, free: 130.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08148/2.262, allocations: 108.4 MB / 0.953 GB, free: 27.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006013/2.268, allocations: 3.617 MB / 0.9566 GB, free: 25.89 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005506/2.274, allocations: 1.978 MB / 0.9585 GB, free: 25.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00352/2.278, allocations: 2.085 MB / 0.9605 GB, free: 24.03 MB / 0.4981 GB Notification: Performance of SimCode: time 2.294e-06/2.278, allocations: 0 / 0.9605 GB, free: 24.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4919/2.77, allocations: 110.3 MB / 1.068 GB, free: 137.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/2.77, allocations: 217.1 kB / 1.068 GB, free: 137 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.169/6.939, allocations: 0 / 1.068 GB, free: 137 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat