Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",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.002278/0.002278, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.048/2.048, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001063/0.001062, allocations: 90.64 kB / 267.5 MB, free: 14.11 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.2752/0.2752, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.272e-05/3.289e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5196/0.6353, allocations: 107.2 MB / 0.5776 GB, free: 12.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.6356, allocations: 75.52 kB / 0.5777 GB, free: 12.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4463/1.082, allocations: 103.9 MB / 0.6791 GB, free: 12.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.454e-06/1.082, allocations: 0 / 0.6791 GB, free: 12.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004814/1.083, allocations: 100 kB / 0.6792 GB, free: 12.42 MB / 490.7 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.02427/1.107, allocations: 5.21 MB / 0.6843 GB, free: 7.141 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/1.107, allocations: 12.03 kB / 0.6843 GB, free: 7.129 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005013/1.112, allocations: 1.02 MB / 0.6853 GB, free: 6.098 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05292/1.165, allocations: 6.888 MB / 0.692 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03021/1.195, allocations: 7.511 MB / 0.6993 GB, free: 7.594 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006031/1.196, allocations: 374.2 kB / 0.6997 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002907/1.199, allocations: 0.4996 MB / 0.7002 GB, free: 6.727 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4179/1.617, allocations: 12.26 MB / 0.7122 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006947/1.617, allocations: 76.83 kB / 0.7122 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00309/1.621, allocations: 238.6 kB / 0.7125 GB, free: 106.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003303/1.624, allocations: 1.142 MB / 0.7136 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03742/1.661, allocations: 10.13 MB / 0.7235 GB, free: 106.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08602/1.748, allocations: 55.73 MB / 0.7779 GB, free: 72.71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02402/1.772, allocations: 5.672 MB / 0.7834 GB, free: 70.75 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005479/1.777, allocations: 2.809 MB / 0.7862 GB, free: 69.51 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02115/1.798, allocations: 8.811 MB / 0.7948 GB, free: 65.15 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.149e-05/1.798, allocations: 62.88 kB / 0.7948 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=206): time 5.25e-06/1.798, allocations: 2.734 kB / 0.7948 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=265): time 0.1727/1.971, allocations: 29.43 MB / 0.8236 GB, free: 57.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/1.971, allocations: 213.4 kB / 0.8238 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01543/1.987, allocations: 4.187 MB / 0.8279 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000972/1.988, allocations: 65.7 kB / 0.8279 GB, free: 53.76 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004361/1.992, allocations: 3.444 MB / 0.8313 GB, free: 50.68 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002201/1.994, allocations: 0.9825 MB / 0.8323 GB, free: 49.82 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/1.996, allocations: 136 kB / 0.8324 GB, free: 49.68 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009334/1.997, allocations: 0.5922 MB / 0.833 GB, free: 49.16 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01156/2.008, allocations: 2.95 MB / 0.8358 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01529/2.024, allocations: 6.754 MB / 0.8424 GB, free: 38.26 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01277/2.037, allocations: 4.428 MB / 0.8468 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/2.037, allocations: 40 kB / 0.8468 GB, free: 34.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.04122/2.078, allocations: 12.78 MB / 0.8593 GB, free: 23.79 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/2.078, allocations: 64 kB / 0.8593 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001897/2.078, allocations: 136.2 kB / 0.8595 GB, free: 23.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02053/2.099, allocations: 4.088 MB / 0.8635 GB, free: 20.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008748/2.108, allocations: 1.421 MB / 0.8648 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05973/2.168, allocations: 25.82 MB / 0.8901 GB, free: 9.445 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008676/2.176, allocations: 395.2 kB / 0.8904 GB, free: 9.062 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001991/2.178, allocations: 408 kB / 0.8908 GB, free: 8.664 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (763): * Single equations (assignments): 757 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.002788/2.181, allocations: 0.6055 MB / 0.8914 GB, free: 8.051 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/2.183, allocations: 449 kB / 0.8918 GB, free: 7.609 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4056/2.588, allocations: 8.064 MB / 0.8997 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/2.589, allocations: 28.16 kB / 0.8997 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.115e-05/2.589, allocations: 14.84 kB / 0.8998 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.89e-05/2.589, allocations: 15.94 kB / 0.8998 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06047/2.649, allocations: 16.65 MB / 0.916 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-05/2.649, allocations: 9.312 kB / 0.9161 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003022/2.652, allocations: 308.6 kB / 0.9163 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01988/2.672, allocations: 3.759 MB / 0.92 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000829/2.673, allocations: 47.25 kB / 0.9201 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05245/2.726, allocations: 24.56 MB / 0.944 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/2.726, allocations: 10.97 kB / 0.9441 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03558/2.761, allocations: 12.56 MB / 0.9563 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004035/2.765, allocations: 0.9568 MB / 0.9572 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001772/2.767, allocations: 43.88 kB / 0.9573 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004998/2.772, allocations: 166.9 kB / 0.9574 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001356/2.774, allocations: 193.1 kB / 0.9576 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003763/2.774, allocations: 75.17 kB / 0.9577 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008123/2.782, allocations: 2.963 MB / 0.9606 GB, free: 99.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.062e-06/2.782, allocations: 0 / 0.9606 GB, free: 99.11 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009285/2.792, allocations: 1.425 MB / 0.962 GB, free: 98.95 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 155 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.03639/2.828, allocations: 14.34 MB / 0.976 GB, free: 92.03 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02014/2.848, allocations: 8.026 MB / 0.9838 GB, free: 89.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/2.848, allocations: 0 / 0.9838 GB, free: 89.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00908/2.857, allocations: 3.427 MB / 0.9872 GB, free: 87.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004739/2.862, allocations: 0.5476 MB / 0.9877 GB, free: 87.39 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04333/2.905, allocations: 12.65 MB / 1 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008997/2.915, allocations: 4.056 MB / 1.004 GB, free: 77.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005492/2.92, allocations: 2.441 MB / 1.006 GB, free: 74.78 MB / 0.5105 GB Notification: Performance of SimCode: time 1.924e-06/2.92, allocations: 0 / 1.006 GB, free: 74.78 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.413/8.334, allocations: 167.3 MB / 1.17 GB, free: 106.8 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat does not exist to compare? outputFormat=mat