Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",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.001011/0.001011, allocations: 98.17 kB / 16.99 MB, free: 5.941 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.0009466/0.0009467, allocations: 183.3 kB / 17.87 MB, free: 5.609 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.395/1.395, allocations: 223.2 MB / 241.8 MB, free: 396 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.2466/0.2466, allocations: 44.23 MB / 337.1 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003506, allocations: 8.625 kB / 409.6 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1538, allocations: 61.92 MB / 471.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.4029/0.5568, allocations: 53.33 MB / 0.5126 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03404/0.5909, allocations: 12.85 MB / 0.5251 GB, free: 9.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01371/0.6046, allocations: 280.5 kB / 0.5254 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01107/0.6157, allocations: 2.662 MB / 0.528 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03006/0.6458, allocations: 7.7 MB / 0.5355 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00546/0.6513, allocations: 0.8983 MB / 0.5364 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.06586/0.7172, allocations: 48 MB / 0.5833 GB, free: 1.344 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01041/0.7277, allocations: 5.519 MB / 0.5886 GB, free: 11.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003395/0.7311, allocations: 1.335 MB / 0.5899 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002812/0.7339, allocations: 1.795 MB / 0.5917 GB, free: 8.633 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005824/0.7345, allocations: 172 kB / 0.5919 GB, free: 8.465 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002285/0.7368, allocations: 1.057 MB / 0.5929 GB, free: 7.406 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.7387, allocations: 1.999 MB / 0.5949 GB, free: 5.402 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001143/0.7399, allocations: 1.03 MB / 0.5959 GB, free: 4.363 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007702/0.7476, allocations: 6.887 MB / 0.6026 GB, free: 13.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.7476, allocations: 4 kB / 0.6026 GB, free: 13.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.7476, allocations: 0 / 0.6026 GB, free: 13.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002685/0.7479, allocations: 4 kB / 0.6026 GB, free: 13.45 MB / 446.1 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.01529/0.7632, allocations: 5.541 MB / 0.608 GB, free: 7.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.7633, allocations: 12.03 kB / 0.608 GB, free: 7.828 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003154/0.7664, allocations: 0.9118 MB / 0.6089 GB, free: 6.906 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04176/0.8082, allocations: 7.935 MB / 0.6167 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.819, allocations: 4.193 MB / 0.6207 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002859/0.8193, allocations: 283.3 kB / 0.621 GB, free: 10.43 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001628/0.821, allocations: 391.6 kB / 0.6214 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02491/0.8459, allocations: 12.05 MB / 0.6332 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001686/0.8461, allocations: 59.44 kB / 0.6332 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004862/0.8466, allocations: 183.8 kB / 0.6334 GB, free: 12.97 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/0.85, allocations: 2.144 MB / 0.6355 GB, free: 10.83 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0226/0.8726, allocations: 10.31 MB / 0.6455 GB, free: 0.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06911/0.9418, allocations: 47.47 MB / 0.6919 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01526/0.9571, allocations: 5.875 MB / 0.6976 GB, free: 9.664 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01619/0.9734, allocations: 8.857 MB / 0.7063 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/0.9735, allocations: 47.88 kB / 0.7063 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=206): time 6.923e-06/0.9735, allocations: 4 kB / 0.7063 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of matching and sorting (n=262): time 0.4534/1.427, allocations: 35.48 MB / 0.741 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/1.427, allocations: 205.9 kB / 0.7412 GB, free: 180 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006436/1.433, allocations: 5.135 MB / 0.7462 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006164/1.434, allocations: 62.56 kB / 0.7462 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002071/1.436, allocations: 3.599 MB / 0.7498 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001094/1.437, allocations: 0.9649 MB / 0.7507 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/1.438, allocations: 136 kB / 0.7508 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002677/1.438, allocations: 0.5871 MB / 0.7514 GB, free: 169.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003501/1.441, allocations: 2.996 MB / 0.7543 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004773/1.446, allocations: 6.789 MB / 0.761 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005172/1.451, allocations: 4.422 MB / 0.7653 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.893e-05/1.451, allocations: 40 kB / 0.7653 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02403/1.475, allocations: 13.16 MB / 0.7782 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.372e-05/1.476, allocations: 67.98 kB / 0.7782 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/1.476, allocations: 132 kB / 0.7784 GB, free: 140 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01118/1.487, allocations: 4.249 MB / 0.7825 GB, free: 135.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004676/1.492, allocations: 1.407 MB / 0.7839 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0315/1.523, allocations: 27.41 MB / 0.8106 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005871/1.529, allocations: 403.4 kB / 0.811 GB, free: 106.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001105/1.53, allocations: 397 kB / 0.8114 GB, free: 105.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (756): * Single equations (assignments): 750 * 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.004307/1.534, allocations: 2.461 MB / 0.8138 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/1.536, allocations: 442.3 kB / 0.8142 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/1.55, allocations: 8.222 MB / 0.8223 GB, free: 94.63 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-05/1.55, allocations: 32 kB / 0.8223 GB, free: 94.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.021e-05/1.55, allocations: 12 kB / 0.8223 GB, free: 94.59 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.195e-05/1.55, allocations: 19.91 kB / 0.8223 GB, free: 94.57 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03058/1.581, allocations: 16.88 MB / 0.8388 GB, free: 77.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.289e-05/1.581, allocations: 8 kB / 0.8388 GB, free: 77.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/1.582, allocations: 304.1 kB / 0.8391 GB, free: 77.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01039/1.593, allocations: 3.939 MB / 0.843 GB, free: 73.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006914/1.594, allocations: 51.98 kB / 0.843 GB, free: 73.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0293/1.623, allocations: 26.2 MB / 0.8686 GB, free: 46.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.623, allocations: 8 kB / 0.8686 GB, free: 46.68 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01891/1.642, allocations: 12.74 MB / 0.881 GB, free: 33.64 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00163/1.643, allocations: 0.5031 MB / 0.8815 GB, free: 33.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008318/1.644, allocations: 44 kB / 0.8816 GB, free: 33.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002218/1.647, allocations: 176.7 kB / 0.8817 GB, free: 32.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006534/1.647, allocations: 198.1 kB / 0.8819 GB, free: 32.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/1.647, allocations: 68.7 kB / 0.882 GB, free: 32.63 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004428/1.652, allocations: 3.297 MB / 0.8852 GB, free: 29.34 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.02e-07/1.652, allocations: 0 / 0.8852 GB, free: 29.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007598/1.659, allocations: 1.444 MB / 0.8866 GB, free: 27.91 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 (158): * Single equations (assignments): 152 * 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.01943/1.679, allocations: 14.56 MB / 0.9009 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2767/1.956, allocations: 8.107 MB / 0.9088 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/1.956, allocations: 1.469 kB / 0.9088 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007618/1.963, allocations: 3.509 MB / 0.9122 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004748/1.968, allocations: 0.5507 MB / 0.9127 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1281/2.096, allocations: 141.6 MB / 1.051 GB, free: 52.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005947/2.102, allocations: 4.028 MB / 1.055 GB, free: 48.64 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005184/2.107, allocations: 2.015 MB / 1.057 GB, free: 46.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0034/2.111, allocations: 2.366 MB / 1.059 GB, free: 44.26 MB / 0.5294 GB Notification: Performance of SimCode: time 9.71e-07/2.111, allocations: 0 / 1.059 GB, free: 44.26 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5011/2.612, allocations: 118.8 MB / 1.175 GB, free: 120.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/2.612, allocations: 229.5 kB / 1.175 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.794/7.406, allocations: 0 / 1.175 GB, free: 120.6 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat does not exist to compare? outputFormat=mat