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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008054/0.0008054, allocations: 95.52 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009239/0.0009241, allocations: 190.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.2 MB / 241.9 MB, free: 14.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2156/0.2156, allocations: 44.21 MB / 337.2 MB, free: 2.578 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003439/0.0003442, allocations: 9.312 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1415, allocations: 61.91 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.04281/0.1844, allocations: 42.58 MB / 0.5022 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3181/0.5025, allocations: 9.584 MB / 0.5115 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01012/0.5127, allocations: 203.2 kB / 0.5117 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00849/0.5212, allocations: 2.178 MB / 0.5138 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02154/0.5428, allocations: 6.618 MB / 0.5203 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003535/0.5464, allocations: 0.7902 MB / 0.5211 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07914/0.6255, allocations: 61.33 MB / 0.581 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008596/0.6342, allocations: 4.254 MB / 0.5851 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005139/0.6394, allocations: 1.431 MB / 0.5865 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004463/0.6439, allocations: 2.404 MB / 0.5889 GB, free: 10.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.6449, allocations: 176 kB / 0.589 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002982/0.6479, allocations: 1.093 MB / 0.5901 GB, free: 9.805 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002592/0.6505, allocations: 1.944 MB / 0.592 GB, free: 8.199 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001414/0.6519, allocations: 0.8944 MB / 0.5929 GB, free: 7.695 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007662/0.6596, allocations: 6.14 MB / 0.5989 GB, free: 2.184 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.6596, allocations: 4 kB / 0.5989 GB, free: 2.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.6597, allocations: 0 / 0.5989 GB, free: 2.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002244/0.6599, allocations: 1.312 kB / 0.5989 GB, free: 2.18 MB / 430.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.01178/0.6717, allocations: 4.805 MB / 0.6036 GB, free: 13.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.6717, allocations: 12.03 kB / 0.6036 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003968/0.6757, allocations: 0.812 MB / 0.6044 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03358/0.7093, allocations: 6.035 MB / 0.6103 GB, free: 6.441 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009118/0.7185, allocations: 3.935 MB / 0.6141 GB, free: 2.461 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/0.7188, allocations: 238.2 kB / 0.6143 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00134/0.7201, allocations: 331.8 kB / 0.6147 GB, free: 1.902 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02209/0.7422, allocations: 10.78 MB / 0.6252 GB, free: 6.379 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001545/0.7424, allocations: 59.53 kB / 0.6252 GB, free: 6.32 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004289/0.7428, allocations: 151.9 kB / 0.6254 GB, free: 6.172 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003067/0.7459, allocations: 2.002 MB / 0.6273 GB, free: 4.168 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0212/0.7671, allocations: 9.227 MB / 0.6364 GB, free: 10.91 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05452/0.8217, allocations: 40.99 MB / 0.6764 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/0.8326, allocations: 4.218 MB / 0.6805 GB, free: 12.37 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002936/0.8356, allocations: 1.892 MB / 0.6823 GB, free: 10.46 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01212/0.8477, allocations: 7.5 MB / 0.6897 GB, free: 2.602 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.836e-05/0.8478, allocations: 55.5 kB / 0.6897 GB, free: 2.539 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=180): time 5.17e-06/0.8478, allocations: 0 / 0.6897 GB, free: 2.539 MB / 0.5138 GB Notification: Performance of matching and sorting (n=236): time 0.4376/1.285, allocations: 41.13 MB / 0.7299 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.208e-05/1.286, allocations: 201.5 kB / 0.7301 GB, free: 188.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006132/1.292, allocations: 4.3 MB / 0.7343 GB, free: 186 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006088/1.292, allocations: 66.25 kB / 0.7343 GB, free: 185.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001964/1.294, allocations: 3.219 MB / 0.7375 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001167/1.295, allocations: 0.8778 MB / 0.7383 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003545/1.296, allocations: 122.3 kB / 0.7385 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003406/1.296, allocations: 0.5666 MB / 0.739 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004952/1.301, allocations: 3.474 MB / 0.7424 GB, free: 180 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006202/1.307, allocations: 7.085 MB / 0.7493 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00604/1.313, allocations: 4.804 MB / 0.754 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-05/1.314, allocations: 36 kB / 0.7541 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03453/1.348, allocations: 15.67 MB / 0.7694 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.222e-05/1.348, allocations: 61.88 kB / 0.7694 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001436/1.348, allocations: 124 kB / 0.7695 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01963/1.368, allocations: 6.117 MB / 0.7755 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005313/1.373, allocations: 1.427 MB / 0.7769 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0301/1.404, allocations: 25.67 MB / 0.802 GB, free: 117.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005851/1.409, allocations: 403.3 kB / 0.8023 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009847/1.41, allocations: 376.2 kB / 0.8027 GB, free: 117.1 MB / 0.5294 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.00404/1.414, allocations: 2.209 MB / 0.8049 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009977/1.415, allocations: 394.8 kB / 0.8052 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0252/1.441, allocations: 11.07 MB / 0.8161 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.812e-05/1.441, allocations: 24 kB / 0.8161 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-05/1.441, allocations: 16.45 kB / 0.8161 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.403e-05/1.441, allocations: 11.92 kB / 0.8161 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03768/1.479, allocations: 20.58 MB / 0.8362 GB, free: 82.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.789e-05/1.479, allocations: 4 kB / 0.8362 GB, free: 82.36 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001917/1.481, allocations: 395.9 kB / 0.8366 GB, free: 81.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01726/1.498, allocations: 5.172 MB / 0.8416 GB, free: 76.79 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000597/1.499, allocations: 44.84 kB / 0.8417 GB, free: 76.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02332/1.522, allocations: 20.79 MB / 0.862 GB, free: 55.69 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.762e-06/1.522, allocations: 8.031 kB / 0.862 GB, free: 55.68 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02715/1.549, allocations: 14.3 MB / 0.876 GB, free: 41.29 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/1.551, allocations: 451.8 kB / 0.8764 GB, free: 40.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009756/1.552, allocations: 44 kB / 0.8764 GB, free: 40.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/1.554, allocations: 177.8 kB / 0.8766 GB, free: 40.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005377/1.554, allocations: 153.1 kB / 0.8767 GB, free: 40.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001952/1.555, allocations: 67.98 kB / 0.8768 GB, free: 40.39 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003797/1.558, allocations: 2.707 MB / 0.8794 GB, free: 37.68 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.8e-07/1.558, allocations: 3.938 kB / 0.8795 GB, free: 37.68 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006781/1.565, allocations: 1.328 MB / 0.8807 GB, free: 36.35 MB / 0.5294 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.02722/1.592, allocations: 14.93 MB / 0.8953 GB, free: 21.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2829/1.875, allocations: 8.043 MB / 0.9032 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-05/1.875, allocations: 0.9375 kB / 0.9032 GB, free: 183.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00673/1.882, allocations: 3.166 MB / 0.9063 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004487/1.887, allocations: 0.5139 MB / 0.9068 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.108/1.995, allocations: 49.36 MB / 0.955 GB, free: 152 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005613/2, allocations: 3.513 MB / 0.9584 GB, free: 148.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005033/2.005, allocations: 1.957 MB / 0.9603 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003443/2.009, allocations: 2.081 MB / 0.9624 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of SimCode: time 2.244e-06/2.009, allocations: 0 / 0.9624 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1528/2.162, allocations: 110.4 MB / 1.07 GB, free: 34.44 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/2.162, allocations: 221.4 kB / 1.07 GB, free: 34.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.229/6.391, allocations: 0 / 1.07 GB, free: 34.2 MB / 0.5294 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