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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 185.2 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.643/1.643, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008914/0.0008911, allocations: 94.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2244/0.2244, allocations: 43.56 MB / 362 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.000323, allocations: 12 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.144, allocations: 58.86 MB / 490.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4973/0.6413, allocations: 106.7 MB / 0.583 GB, free: 9.328 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.6417, allocations: 76.95 kB / 0.5831 GB, free: 9.289 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2406/0.8823, allocations: 95.22 MB / 0.6761 GB, free: 1.887 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.8823, allocations: 0 / 0.6761 GB, free: 1.887 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000225/0.8826, allocations: 88 kB / 0.6762 GB, free: 1.801 MB / 474.7 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.01642/0.899, allocations: 5.043 MB / 0.6811 GB, free: 12.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.8991, allocations: 8.031 kB / 0.6811 GB, free: 12.67 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003751/0.9028, allocations: 0.9083 MB / 0.682 GB, free: 11.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02582/0.9287, allocations: 6.733 MB / 0.6886 GB, free: 4.996 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01742/0.9461, allocations: 6.348 MB / 0.6948 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003874/0.9466, allocations: 324.6 kB / 0.6951 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002711/0.9493, allocations: 455.6 kB / 0.6955 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02382/0.9731, allocations: 11.07 MB / 0.7063 GB, free: 1.719 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000224/0.9734, allocations: 67.45 kB / 0.7064 GB, free: 1.652 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009865/0.9744, allocations: 211.9 kB / 0.7066 GB, free: 1.445 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001453/0.9759, allocations: 1.022 MB / 0.7076 GB, free: 424 kB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3102/1.286, allocations: 9.294 MB / 0.7167 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05137/1.338, allocations: 47.69 MB / 0.7632 GB, free: 87.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009438/1.347, allocations: 4.139 MB / 0.7673 GB, free: 86.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01159/1.359, allocations: 7.505 MB / 0.7746 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/1.359, allocations: 53.75 kB / 0.7746 GB, free: 82.02 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 4.718e-06/1.359, allocations: 0 / 0.7746 GB, free: 82.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=236): time 0.1459/1.505, allocations: 41.06 MB / 0.8147 GB, free: 72.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/1.505, allocations: 205.9 kB / 0.8149 GB, free: 71.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005104/1.51, allocations: 3.816 MB / 0.8187 GB, free: 68.64 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005203/1.51, allocations: 57.7 kB / 0.8187 GB, free: 68.57 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001541/1.512, allocations: 3.246 MB / 0.8219 GB, free: 65.76 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009042/1.513, allocations: 0.8756 MB / 0.8227 GB, free: 64.98 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003455/1.513, allocations: 128 kB / 0.8229 GB, free: 64.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002604/1.513, allocations: 0.5742 MB / 0.8234 GB, free: 64.36 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003682/1.517, allocations: 3.418 MB / 0.8268 GB, free: 61.42 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004903/1.522, allocations: 7.045 MB / 0.8336 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005023/1.527, allocations: 4.771 MB / 0.8383 GB, free: 48.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.186e-05/1.527, allocations: 36 kB / 0.8383 GB, free: 48.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.03154/1.559, allocations: 15.47 MB / 0.8534 GB, free: 32.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.692e-05/1.559, allocations: 60.25 kB / 0.8535 GB, free: 32.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.559, allocations: 128 kB / 0.8536 GB, free: 32.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02017/1.579, allocations: 5.931 MB / 0.8594 GB, free: 26.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005145/1.584, allocations: 1.431 MB / 0.8608 GB, free: 25.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02817/1.613, allocations: 25.72 MB / 0.8859 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006446/1.619, allocations: 395.4 kB / 0.8863 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001318/1.62, allocations: 381.1 kB / 0.8867 GB, free: 14.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 (746): * Single equations (assignments): 741 * 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.005734/1.626, allocations: 2.222 MB / 0.8888 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001126/1.627, allocations: 402.8 kB / 0.8892 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02867/1.656, allocations: 10.82 MB / 0.8998 GB, free: 1.113 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.046e-05/1.656, allocations: 28 kB / 0.8998 GB, free: 1.086 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.371e-05/1.656, allocations: 12 kB / 0.8998 GB, free: 1.074 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.964e-05/1.656, allocations: 11.95 kB / 0.8998 GB, free: 1.062 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3444/2.001, allocations: 20.21 MB / 0.9196 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.506e-05/2.001, allocations: 5.625 kB / 0.9196 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/2.003, allocations: 385.7 kB / 0.9199 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01927/2.022, allocations: 4.997 MB / 0.9248 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007449/2.023, allocations: 40.2 kB / 0.9249 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02614/2.049, allocations: 20.87 MB / 0.9453 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/2.049, allocations: 10.56 kB / 0.9453 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02954/2.079, allocations: 14.6 MB / 0.9595 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003549/2.082, allocations: 0.9541 MB / 0.9604 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008447/2.083, allocations: 50.06 kB / 0.9605 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/2.086, allocations: 168 kB / 0.9607 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006531/2.086, allocations: 154.1 kB / 0.9608 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002136/2.086, allocations: 66.23 kB / 0.9609 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004752/2.091, allocations: 2.701 MB / 0.9635 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.71e-07/2.091, allocations: 6.375 kB / 0.9635 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007925/2.099, allocations: 1.323 MB / 0.9648 GB, free: 107.7 MB / 0.5105 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.03022/2.129, allocations: 16.4 MB / 0.9808 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01198/2.141, allocations: 7.952 MB / 0.9886 GB, free: 97.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/2.141, allocations: 0 / 0.9886 GB, free: 97.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004555/2.146, allocations: 3.111 MB / 0.9916 GB, free: 96.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/2.15, allocations: 492.6 kB / 0.9921 GB, free: 95.89 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05155/2.201, allocations: 109.1 MB / 1.099 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.258/2.459, allocations: 3.607 MB / 1.102 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006733/2.466, allocations: 1.97 MB / 1.104 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003905/2.47, allocations: 2.082 MB / 1.106 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.593e-06/2.47, allocations: 6.062 kB / 1.106 GB, free: 136.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1578/2.628, allocations: 108.7 MB / 1.212 GB, free: 85.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001407/2.628, allocations: 209 kB / 1.212 GB, free: 85.11 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.487/7.115, allocations: 0 / 1.212 GB, free: 85.11 MB / 0.5261 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) 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