Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 169.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 221.5 MB / 230.7 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009283/0.0009283, allocations: 96.02 kB / 281.6 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2417/0.2417, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.675e-05/1.684e-05, allocations: 4.219 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1439, allocations: 61.92 MB / 0.4948 GB, free: 1.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4784/0.6223, allocations: 107.8 MB / 0.6 GB, free: 4.559 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.6226, allocations: 71.97 kB / 0.6001 GB, free: 4.488 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2485/0.8711, allocations: 94.66 MB / 0.6925 GB, free: 5.191 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8711, allocations: 0 / 0.6925 GB, free: 5.191 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002252/0.8714, allocations: 88 kB / 0.6926 GB, free: 5.105 MB / 0.4948 GB 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.01376/0.8851, allocations: 4.605 MB / 0.6971 GB, free: 440 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.8852, allocations: 15.98 kB / 0.6971 GB, free: 424 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3399/1.225, allocations: 6.73 MB / 0.7037 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01944/1.245, allocations: 5.985 MB / 0.7095 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003056/1.245, allocations: 138.6 kB / 0.7097 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/1.247, allocations: 269.4 kB / 0.7099 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0162/1.263, allocations: 6.59 MB / 0.7164 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0222/1.286, allocations: 9.575 MB / 0.7257 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005664/1.286, allocations: 64.69 kB / 0.7258 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002576/1.289, allocations: 30.91 kB / 0.7258 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001738/1.291, allocations: 1.019 MB / 0.7268 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04729/1.338, allocations: 45.98 MB / 0.7717 GB, free: 77.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003963/1.342, allocations: 3.069 MB / 0.7747 GB, free: 76.09 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002096/1.344, allocations: 1.735 MB / 0.7764 GB, free: 75.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001435/1.346, allocations: 1.931 MB / 0.7783 GB, free: 73.66 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/1.346, allocations: 55.98 kB / 0.7783 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=186): time 5.631e-06/1.346, allocations: 2.812 kB / 0.7783 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.06128/1.407, allocations: 26.14 MB / 0.8039 GB, free: 63.35 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.914e-05/1.407, allocations: 213.8 kB / 0.8041 GB, free: 63.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005025/1.412, allocations: 3.265 MB / 0.8072 GB, free: 60.21 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006372/1.413, allocations: 25.7 kB / 0.8073 GB, free: 60.18 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001588/1.414, allocations: 3.277 MB / 0.8105 GB, free: 57.19 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008512/1.415, allocations: 0.8748 MB / 0.8113 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003163/1.416, allocations: 3.75 kB / 0.8113 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002809/1.416, allocations: 0.5762 MB / 0.8119 GB, free: 55.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003471/1.419, allocations: 3.309 MB / 0.8151 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004751/1.424, allocations: 7.051 MB / 0.822 GB, free: 44.45 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005333/1.429, allocations: 4.716 MB / 0.8266 GB, free: 40.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-05/1.43, allocations: 40 kB / 0.8266 GB, free: 40.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.03534/1.465, allocations: 14.68 MB / 0.841 GB, free: 28.53 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.46e-05/1.465, allocations: 64 kB / 0.841 GB, free: 28.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/1.465, allocations: 132.8 kB / 0.8412 GB, free: 28.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02208/1.487, allocations: 5.923 MB / 0.847 GB, free: 22.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005814/1.493, allocations: 1.497 MB / 0.8484 GB, free: 20.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02768/1.521, allocations: 22.89 MB / 0.8708 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006849/1.528, allocations: 275 kB / 0.871 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001774/1.53, allocations: 388 kB / 0.8714 GB, free: 13.14 MB / 0.5105 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.001552/1.531, allocations: 462.6 kB / 0.8718 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02916/1.56, allocations: 10.6 MB / 0.8822 GB, free: 2.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001492/1.562, allocations: 375.2 kB / 0.8826 GB, free: 1.699 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02951/1.591, allocations: 10.56 MB / 0.8929 GB, free: 7.105 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.847e-05/1.591, allocations: 29.09 kB / 0.8929 GB, free: 7.078 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.272e-05/1.591, allocations: 8 kB / 0.8929 GB, free: 7.07 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.506e-05/1.592, allocations: 15.95 kB / 0.8929 GB, free: 7.055 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3809/1.972, allocations: 19.43 MB / 0.9119 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.338e-05/1.973, allocations: 9.312 kB / 0.9119 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002185/1.975, allocations: 389.4 kB / 0.9123 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02081/1.996, allocations: 4.982 MB / 0.9171 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006684/1.996, allocations: 9.875 kB / 0.9172 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02348/2.02, allocations: 18.43 MB / 0.9352 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-05/2.02, allocations: 12.44 kB / 0.9352 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0296/2.049, allocations: 14.35 MB / 0.9492 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/2.051, allocations: 411.6 kB / 0.9496 GB, free: 120 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008135/2.052, allocations: 10.52 kB / 0.9496 GB, free: 120 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/2.054, allocations: 137.2 kB / 0.9497 GB, free: 120 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005818/2.055, allocations: 158.9 kB / 0.9499 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/2.055, allocations: 60.83 kB / 0.9499 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003711/2.059, allocations: 2.205 MB / 0.9521 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/2.059, allocations: 0 / 0.9521 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007981/2.067, allocations: 1.163 MB / 0.9532 GB, free: 119.1 MB / 0.5261 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.0307/2.097, allocations: 16.17 MB / 0.969 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01097/2.108, allocations: 7.635 MB / 0.9765 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/2.108, allocations: 0 / 0.9765 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004034/2.113, allocations: 3.028 MB / 0.9794 GB, free: 108 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002927/2.115, allocations: 414 kB / 0.9798 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02481/2.14, allocations: 11.16 MB / 0.9907 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003623/2.144, allocations: 3.6 MB / 0.9942 GB, free: 99.83 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005201/2.149, allocations: 2.051 MB / 0.9962 GB, free: 98.64 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003005/2.152, allocations: 2.062 MB / 0.9982 GB, free: 96.73 MB / 0.5261 GB Notification: Performance of SimCode: time 1.512e-06/2.152, allocations: 0 / 0.9982 GB, free: 96.73 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4798/2.632, allocations: 103.7 MB / 1.099 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002206/2.632, allocations: 161.6 kB / 1.1 GB, free: 105 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.519/7.152, allocations: 0 / 1.1 GB, free: 105 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat