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.0016/0.001599, allocations: 186.2 kB / 16.4 MB, free: 5.625 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.262/2.262, allocations: 205.4 MB / 222.5 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.001223/0.001222, allocations: 98.84 kB / 270.9 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.2913/0.2913, allocations: 43.55 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006662/0.0006665, allocations: 12 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1487, allocations: 58.86 MB / 490.3 MB, free: 9.23 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.06503/0.2138, allocations: 40.23 MB / 0.5181 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3854/0.5993, allocations: 10 MB / 0.5279 GB, free: 9.766 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01326/0.6126, allocations: 201 kB / 0.5281 GB, free: 9.766 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01181/0.6245, allocations: 1.976 MB / 0.53 GB, free: 9.684 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0371/0.6617, allocations: 5.847 MB / 0.5357 GB, free: 9.207 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006236/0.668, allocations: 0.7561 MB / 0.5364 GB, free: 9 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.07677/0.7448, allocations: 27.34 MB / 0.5631 GB, free: 13.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009663/0.7545, allocations: 4.24 MB / 0.5673 GB, free: 10.73 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003571/0.7582, allocations: 1.187 MB / 0.5684 GB, free: 9.773 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004223/0.7625, allocations: 1.738 MB / 0.5701 GB, free: 8.336 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001937/0.7645, allocations: 176 kB / 0.5703 GB, free: 8.164 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004194/0.7687, allocations: 1.056 MB / 0.5713 GB, free: 7.289 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003688/0.7725, allocations: 1.821 MB / 0.5731 GB, free: 5.816 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.7746, allocations: 0.8988 MB / 0.574 GB, free: 5.234 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.7857, allocations: 6.156 MB / 0.58 GB, free: 15.27 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.7858, allocations: 0 / 0.58 GB, free: 15.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.085e-06/0.7858, allocations: 0 / 0.58 GB, free: 15.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002469/0.7861, allocations: 0 / 0.58 GB, free: 15.27 MB / 394.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.01768/0.8038, allocations: 4.882 MB / 0.5848 GB, free: 10.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.8038, allocations: 8.031 kB / 0.5848 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002536/0.8064, allocations: 0.8119 MB / 0.5856 GB, free: 9.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08493/0.8913, allocations: 7.893 MB / 0.5933 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01394/0.9053, allocations: 3.85 MB / 0.597 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003973/0.9058, allocations: 238.3 kB / 0.5973 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001934/0.9077, allocations: 336.5 kB / 0.5976 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03428/0.942, allocations: 10.88 MB / 0.6082 GB, free: 1.805 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00028/0.9424, allocations: 51.59 kB / 0.6083 GB, free: 1.754 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001328/0.9437, allocations: 150.6 kB / 0.6084 GB, free: 1.645 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006257/0.95, allocations: 2.004 MB / 0.6104 GB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03419/0.9842, allocations: 9.345 MB / 0.6195 GB, free: 6.289 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08376/1.068, allocations: 41.18 MB / 0.6597 GB, free: 12.12 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/1.088, allocations: 4.238 MB / 0.6638 GB, free: 7.738 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02027/1.108, allocations: 7.608 MB / 0.6713 GB, free: 15.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.236e-05/1.108, allocations: 55.52 kB / 0.6713 GB, free: 15.75 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 6.683e-06/1.108, allocations: 0 / 0.6713 GB, free: 15.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.3994/1.507, allocations: 41.54 MB / 0.7119 GB, free: 6.102 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002067/1.508, allocations: 201.9 kB / 0.7121 GB, free: 5.863 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01563/1.523, allocations: 4.584 MB / 0.7166 GB, free: 1.262 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009027/1.524, allocations: 61.7 kB / 0.7166 GB, free: 1.195 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.3659/1.89, allocations: 3.09 MB / 0.7196 GB, free: 185.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001869/1.892, allocations: 0.8776 MB / 0.7205 GB, free: 184.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/1.893, allocations: 128.7 kB / 0.7206 GB, free: 184.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000643/1.894, allocations: 0.5735 MB / 0.7212 GB, free: 184.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009841/1.904, allocations: 3.472 MB / 0.7246 GB, free: 183.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01266/1.916, allocations: 7.061 MB / 0.7315 GB, free: 177.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/1.93, allocations: 4.805 MB / 0.7362 GB, free: 175.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002925/1.93, allocations: 36.84 kB / 0.7362 GB, free: 175.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.06595/1.996, allocations: 15.51 MB / 0.7513 GB, free: 170.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/1.996, allocations: 60.23 kB / 0.7514 GB, free: 170.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001785/1.996, allocations: 125.6 kB / 0.7515 GB, free: 170.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.042/2.038, allocations: 6.108 MB / 0.7575 GB, free: 167.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009392/2.048, allocations: 1.435 MB / 0.7589 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05663/2.104, allocations: 26.38 MB / 0.7847 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008526/2.113, allocations: 404.2 kB / 0.785 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00149/2.115, allocations: 372 kB / 0.7854 GB, free: 139.4 MB / 0.5105 GB 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.006168/2.121, allocations: 2.22 MB / 0.7876 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/2.122, allocations: 402.8 kB / 0.7879 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05036/2.172, allocations: 11.07 MB / 0.7988 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.759e-05/2.173, allocations: 24.94 kB / 0.7988 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.069e-05/2.173, allocations: 12 kB / 0.7988 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.144e-05/2.173, allocations: 11.95 kB / 0.7988 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07269/2.245, allocations: 20.61 MB / 0.8189 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-05/2.245, allocations: 8.094 kB / 0.8189 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003842/2.249, allocations: 391.4 kB / 0.8193 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03738/2.287, allocations: 5.181 MB / 0.8244 GB, free: 99.05 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006443/2.287, allocations: 39.98 kB / 0.8244 GB, free: 99.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04555/2.333, allocations: 21.5 MB / 0.8454 GB, free: 77.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/2.333, allocations: 15.92 kB / 0.8454 GB, free: 77.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05406/2.387, allocations: 14.9 MB / 0.86 GB, free: 62.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003559/2.391, allocations: 0.9916 MB / 0.8609 GB, free: 61.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001469/2.392, allocations: 36.81 kB / 0.861 GB, free: 60.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004875/2.397, allocations: 188.6 kB / 0.8612 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001313/2.399, allocations: 160.5 kB / 0.8613 GB, free: 60.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003478/2.399, allocations: 61.25 kB / 0.8614 GB, free: 60.59 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006807/2.406, allocations: 2.934 MB / 0.8642 GB, free: 57.65 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.71e-07/2.406, allocations: 0 / 0.8642 GB, free: 57.65 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008798/2.415, allocations: 1.346 MB / 0.8655 GB, free: 56.31 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.05592/2.471, allocations: 16.72 MB / 0.8819 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01848/2.489, allocations: 8.045 MB / 0.8897 GB, free: 31.39 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/2.489, allocations: 0 / 0.8897 GB, free: 31.39 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007314/2.497, allocations: 3.17 MB / 0.8928 GB, free: 28.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004251/2.501, allocations: 494.4 kB / 0.8933 GB, free: 27.72 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4151/2.916, allocations: 108.9 MB / 0.9996 GB, free: 90.22 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009969/2.926, allocations: 3.614 MB / 1.003 GB, free: 89.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005683/2.932, allocations: 2.115 MB / 1.005 GB, free: 89.21 MB / 0.5105 GB Notification: Performance of SimCode: time 1.533e-06/2.932, allocations: 0 / 1.005 GB, free: 89.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.079/8.011, allocations: 132.1 MB / 1.134 GB, free: 168.8 MB / 0.5105 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