Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002317/0.002318, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 91.69 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3046/0.3046, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.706e-05/1.716e-05, allocations: 0 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4453/0.4453, allocations: 58.85 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2186/0.664, allocations: 105.9 MB / 0.5694 GB, free: 9.258 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.6643, allocations: 75.95 kB / 0.5695 GB, free: 9.184 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7417/1.406, allocations: 93.44 MB / 0.6607 GB, free: 107.9 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.174e-06/1.406, allocations: 0 / 0.6607 GB, free: 107.9 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003732/1.406, allocations: 84.27 kB / 0.6608 GB, free: 107.9 MB / 475.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.02031/1.427, allocations: 4.614 MB / 0.6653 GB, free: 106.1 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.175e-05/1.427, allocations: 9.469 kB / 0.6653 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04899/1.476, allocations: 6.739 MB / 0.6719 GB, free: 105.8 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02395/1.5, allocations: 6.327 MB / 0.6781 GB, free: 105.1 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/1.5, allocations: 139.3 kB / 0.6782 GB, free: 105.1 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002581/1.503, allocations: 256.6 kB / 0.6785 GB, free: 105.1 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01645/1.519, allocations: 6.586 MB / 0.6849 GB, free: 104.2 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02523/1.545, allocations: 9.574 MB / 0.6942 GB, free: 99.02 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003479/1.545, allocations: 70.66 kB / 0.6943 GB, free: 99 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002028/1.547, allocations: 31.81 kB / 0.6943 GB, free: 99 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002232/1.549, allocations: 1.022 MB / 0.6953 GB, free: 98.83 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06663/1.616, allocations: 46.03 MB / 0.7403 GB, free: 62.62 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005678/1.622, allocations: 3.074 MB / 0.7433 GB, free: 59.66 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003338/1.625, allocations: 1.727 MB / 0.745 GB, free: 58.08 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00229/1.627, allocations: 1.931 MB / 0.7469 GB, free: 56 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.08e-05/1.628, allocations: 59.05 kB / 0.7469 GB, free: 55.93 MB / 475.1 MB Notification: Performance of pre-optimization done (n=186): time 6.643e-06/1.628, allocations: 0 / 0.7469 GB, free: 55.93 MB / 475.1 MB Notification: Performance of matching and sorting (n=242): time 0.1155/1.743, allocations: 26.25 MB / 0.7726 GB, free: 29.69 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.588e-05/1.743, allocations: 201.9 kB / 0.7728 GB, free: 29.45 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007135/1.75, allocations: 3.294 MB / 0.776 GB, free: 26.13 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007116/1.751, allocations: 29.64 kB / 0.776 GB, free: 26.1 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002611/1.754, allocations: 3.215 MB / 0.7791 GB, free: 22.84 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001491/1.755, allocations: 0.871 MB / 0.78 GB, free: 21.96 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000879/1.756, allocations: 0 / 0.78 GB, free: 21.96 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004548/1.757, allocations: 0.5837 MB / 0.7806 GB, free: 21.36 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007012/1.764, allocations: 3.309 MB / 0.7838 GB, free: 18.05 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009713/1.773, allocations: 7.055 MB / 0.7907 GB, free: 9.117 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009646/1.783, allocations: 4.709 MB / 0.7953 GB, free: 4.406 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/1.783, allocations: 44 kB / 0.7953 GB, free: 4.363 MB / 475.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.06566/1.849, allocations: 14.56 MB / 0.8095 GB, free: 5.789 MB / 491.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/1.849, allocations: 75.88 kB / 0.8096 GB, free: 5.715 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/1.849, allocations: 132 kB / 0.8097 GB, free: 5.586 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04413/1.894, allocations: 5.924 MB / 0.8155 GB, free: 15.65 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01041/1.904, allocations: 1.489 MB / 0.817 GB, free: 14.16 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4633/2.367, allocations: 22.88 MB / 0.8393 GB, free: 120.8 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008756/2.376, allocations: 275.2 kB / 0.8396 GB, free: 120.8 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001944/2.378, allocations: 403.4 kB / 0.84 GB, free: 120.8 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (778): * Single equations (assignments): 773 * 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.002875/2.381, allocations: 448.5 kB / 0.8404 GB, free: 120.7 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05394/2.435, allocations: 10.6 MB / 0.8508 GB, free: 120.6 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001593/2.437, allocations: 373.8 kB / 0.8511 GB, free: 120.6 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05667/2.493, allocations: 10.57 MB / 0.8614 GB, free: 118.3 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/2.494, allocations: 25.78 kB / 0.8615 GB, free: 118.3 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.386e-05/2.494, allocations: 11.03 kB / 0.8615 GB, free: 118.3 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-05/2.494, allocations: 7.594 kB / 0.8615 GB, free: 118.3 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1005/2.594, allocations: 19.46 MB / 0.8805 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.596e-05/2.594, allocations: 3.531 kB / 0.8805 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00569/2.6, allocations: 393.7 kB / 0.8809 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05192/2.652, allocations: 4.974 MB / 0.8857 GB, free: 109.9 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009598/2.653, allocations: 14.66 kB / 0.8857 GB, free: 109.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05998/2.713, allocations: 18.45 MB / 0.9037 GB, free: 101 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-05/2.713, allocations: 10.97 kB / 0.9038 GB, free: 101 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06904/2.782, allocations: 14.36 MB / 0.9178 GB, free: 93.73 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004587/2.787, allocations: 0.9296 MB / 0.9187 GB, free: 92.79 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001718/2.789, allocations: 14.91 kB / 0.9187 GB, free: 92.78 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006476/2.795, allocations: 135.8 kB / 0.9188 GB, free: 92.65 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001457/2.797, allocations: 159.5 kB / 0.919 GB, free: 92.5 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005598/2.797, allocations: 63.98 kB / 0.919 GB, free: 92.44 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007134/2.805, allocations: 2.221 MB / 0.9212 GB, free: 90.21 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.022e-06/2.805, allocations: 0 / 0.9212 GB, free: 90.21 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01251/2.817, allocations: 1.171 MB / 0.9223 GB, free: 89.05 MB / 0.4952 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 168 * 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.07007/2.887, allocations: 16.16 MB / 0.9381 GB, free: 72.81 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02177/2.909, allocations: 7.64 MB / 0.9456 GB, free: 65.5 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/2.909, allocations: 0 / 0.9456 GB, free: 65.5 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.008886/2.918, allocations: 3.035 MB / 0.9486 GB, free: 62.45 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005275/2.923, allocations: 403.6 kB / 0.9489 GB, free: 62.07 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04766/2.971, allocations: 11.72 MB / 0.9604 GB, free: 50.32 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01102/2.982, allocations: 3.609 MB / 0.9639 GB, free: 46.71 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007497/2.99, allocations: 2.116 MB / 0.966 GB, free: 44.6 MB / 0.4952 GB Notification: Performance of SimCode: time 1.583e-06/2.99, allocations: 6.516 kB / 0.966 GB, free: 44.6 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.2/8.189, allocations: 130.3 MB / 1.093 GB, free: 104.4 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat