Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",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.001079/0.001079, allocations: 96.41 kB / 16.98 MB, free: 5.938 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.001174/0.001174, allocations: 188.4 kB / 17.88 MB, free: 5.594 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.37/1.37, allocations: 223.2 MB / 241.8 MB, free: 384 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.227/0.227, allocations: 44.23 MB / 337.1 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003945, allocations: 15.98 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1527, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3311/0.4839, allocations: 45.7 MB / 0.5051 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03077/0.5147, allocations: 11.09 MB / 0.5159 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0122/0.527, allocations: 231.8 kB / 0.5162 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009446/0.5365, allocations: 2.28 MB / 0.5184 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03122/0.5677, allocations: 6.691 MB / 0.5249 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004832/0.5726, allocations: 0.8437 MB / 0.5257 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07221/0.6448, allocations: 49.1 MB / 0.5737 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008696/0.6535, allocations: 5.095 MB / 0.5787 GB, free: 5.781 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003984/0.6576, allocations: 1.558 MB / 0.5802 GB, free: 4.219 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004044/0.6616, allocations: 2.271 MB / 0.5824 GB, free: 1.941 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.6627, allocations: 239.9 kB / 0.5826 GB, free: 1.707 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.6658, allocations: 1.102 MB / 0.5837 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003256/0.6691, allocations: 2.389 MB / 0.586 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002175/0.6713, allocations: 1.205 MB / 0.5872 GB, free: 13 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.6828, allocations: 8.091 MB / 0.5951 GB, free: 4.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.6829, allocations: 3.938 kB / 0.5951 GB, free: 4.906 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.6829, allocations: 0 / 0.5951 GB, free: 4.906 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004154/0.6833, allocations: 0 / 0.5951 GB, free: 4.906 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01876/0.7021, allocations: 6.468 MB / 0.6014 GB, free: 14.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/0.7021, allocations: 8.031 kB / 0.6015 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004847/0.707, allocations: 1.134 MB / 0.6026 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04877/0.7558, allocations: 9.716 MB / 0.612 GB, free: 3.492 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/0.7695, allocations: 4.376 MB / 0.6163 GB, free: 15.06 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003823/0.7699, allocations: 320 kB / 0.6166 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002503/0.7725, allocations: 431.7 kB / 0.617 GB, free: 14.33 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03338/0.8059, allocations: 15.77 MB / 0.6324 GB, free: 13.63 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002386/0.8061, allocations: 59.38 kB / 0.6325 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001167/0.8073, allocations: 207.8 kB / 0.6327 GB, free: 13.37 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005415/0.8127, allocations: 3.217 MB / 0.6358 GB, free: 10.15 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03154/0.8443, allocations: 14.09 MB / 0.6496 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09121/0.9356, allocations: 57.54 MB / 0.7058 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3276/1.263, allocations: 6.582 MB / 0.7122 GB, free: 185.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02742/1.291, allocations: 14.55 MB / 0.7264 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.595e-05/1.291, allocations: 59.52 kB / 0.7265 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 5.681e-06/1.291, allocations: 0 / 0.7265 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.1345/1.425, allocations: 42.86 MB / 0.7683 GB, free: 149 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/1.425, allocations: 217 kB / 0.7685 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006626/1.432, allocations: 5.702 MB / 0.7741 GB, free: 143 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008756/1.433, allocations: 74.55 kB / 0.7742 GB, free: 143 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002296/1.435, allocations: 4.415 MB / 0.7785 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001551/1.437, allocations: 1.248 MB / 0.7797 GB, free: 137.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004341/1.437, allocations: 176.7 kB / 0.7799 GB, free: 137.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003428/1.438, allocations: 0.678 MB / 0.7805 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005495/1.443, allocations: 4.616 MB / 0.7851 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007928/1.451, allocations: 9.54 MB / 0.7944 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/1.461, allocations: 6.498 MB / 0.8007 GB, free: 113.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001757/1.462, allocations: 52 kB / 0.8008 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04358/1.505, allocations: 18.95 MB / 0.8193 GB, free: 94.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000125/1.505, allocations: 80 kB / 0.8193 GB, free: 94.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001996/1.506, allocations: 172.9 kB / 0.8195 GB, free: 94.06 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02195/1.528, allocations: 5.831 MB / 0.8252 GB, free: 88.22 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007839/1.535, allocations: 2.063 MB / 0.8272 GB, free: 86.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0276/1.563, allocations: 24.93 MB / 0.8516 GB, free: 60.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008357/1.571, allocations: 0.5553 MB / 0.8521 GB, free: 60.39 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001703/1.573, allocations: 0.5011 MB / 0.8526 GB, free: 59.89 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006313/1.579, allocations: 3.093 MB / 0.8556 GB, free: 56.79 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001383/1.581, allocations: 0.4936 MB / 0.8561 GB, free: 56.29 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02847/1.609, allocations: 12.68 MB / 0.8685 GB, free: 43.54 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001138/1.61, allocations: 57.62 kB / 0.8685 GB, free: 43.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.668e-05/1.61, allocations: 8 kB / 0.8685 GB, free: 43.47 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.763e-05/1.61, allocations: 19.91 kB / 0.8686 GB, free: 43.45 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04816/1.658, allocations: 24.45 MB / 0.8924 GB, free: 18.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.452e-05/1.658, allocations: 7.984 kB / 0.8925 GB, free: 18.53 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003136/1.661, allocations: 0.5772 MB / 0.893 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01831/1.679, allocations: 4.846 MB / 0.8977 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008428/1.68, allocations: 52 kB / 0.8978 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3665/2.047, allocations: 20.19 MB / 0.9175 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/2.047, allocations: 13.88 kB / 0.9175 GB, free: 162.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03637/2.083, allocations: 17.82 MB / 0.9349 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002787/2.086, allocations: 0.5488 MB / 0.9355 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00173/2.088, allocations: 62.14 kB / 0.9355 GB, free: 156 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003832/2.092, allocations: 261 kB / 0.9358 GB, free: 156 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009113/2.093, allocations: 192.4 kB / 0.936 GB, free: 156 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002784/2.093, allocations: 80.83 kB / 0.936 GB, free: 155.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006405/2.099, allocations: 3.587 MB / 0.9395 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.91e-07/2.099, allocations: 0 / 0.9395 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009461/2.109, allocations: 1.742 MB / 0.9412 GB, free: 154.6 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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03465/2.143, allocations: 19.56 MB / 0.9603 GB, free: 139.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01723/2.161, allocations: 10.61 MB / 0.9707 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.596e-05/2.161, allocations: 0 / 0.9707 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005574/2.166, allocations: 4.044 MB / 0.9746 GB, free: 124.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/2.17, allocations: 0.5825 MB / 0.9752 GB, free: 124.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4454/2.616, allocations: 149.3 MB / 1.121 GB, free: 167.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009756/2.625, allocations: 4.751 MB / 1.126 GB, free: 167 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009863/2.635, allocations: 2.998 MB / 1.129 GB, free: 166.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004941/2.64, allocations: 2.926 MB / 1.131 GB, free: 166.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.332e-06/2.64, allocations: 0 / 1.131 GB, free: 166.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2036/2.844, allocations: 135.2 MB / 1.263 GB, free: 50.1 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/2.844, allocations: 222.9 kB / 1.264 GB, free: 49.85 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.04/7.884, allocations: 64 / 1.264 GB, free: 49.85 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat