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.001194/0.001194, allocations: 97.91 kB / 17 MB, free: 6.844 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.001662/0.001662, allocations: 182.3 kB / 17.89 MB, free: 6.078 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.467/1.467, allocations: 223.2 MB / 241.9 MB, free: 14.59 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.2391/0.2391, allocations: 44.23 MB / 337.2 MB, free: 2.559 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003849/0.0003849, allocations: 8.844 kB / 409.7 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1281, allocations: 61.92 MB / 471.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3351/0.4632, allocations: 48.4 MB / 0.5079 GB, free: 9.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02738/0.4907, allocations: 10.64 MB / 0.5182 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0165/0.5072, allocations: 233.8 kB / 0.5185 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01126/0.5185, allocations: 2.511 MB / 0.5209 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02995/0.5485, allocations: 7.593 MB / 0.5283 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005197/0.5537, allocations: 0.8582 MB / 0.5292 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.08227/0.6361, allocations: 62.85 MB / 0.5905 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01026/0.6463, allocations: 5.115 MB / 0.5955 GB, free: 5.531 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004932/0.6513, allocations: 1.88 MB / 0.5974 GB, free: 3.645 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005719/0.6571, allocations: 3.128 MB / 0.6004 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001765/0.6589, allocations: 236 kB / 0.6007 GB, free: 284 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003889/0.6628, allocations: 1.123 MB / 0.6018 GB, free: 15.15 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004532/0.6673, allocations: 2.583 MB / 0.6043 GB, free: 12.56 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003096/0.6705, allocations: 1.197 MB / 0.6054 GB, free: 11.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01176/0.6822, allocations: 8.102 MB / 0.6134 GB, free: 3.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.6823, allocations: 0 / 0.6134 GB, free: 3.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6823, allocations: 0 / 0.6134 GB, free: 3.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004309/0.6827, allocations: 4 kB / 0.6134 GB, free: 3.246 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01655/0.6993, allocations: 6.315 MB / 0.6195 GB, free: 12.88 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.142e-05/0.6994, allocations: 16.02 kB / 0.6195 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004969/0.7043, allocations: 1.144 MB / 0.6207 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03868/0.743, allocations: 7.594 MB / 0.6281 GB, free: 4.086 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/0.7559, allocations: 4.766 MB / 0.6327 GB, free: 15.27 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004078/0.7564, allocations: 323.9 kB / 0.633 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002346/0.7587, allocations: 431.7 kB / 0.6335 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03224/0.791, allocations: 15.62 MB / 0.6487 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002615/0.7913, allocations: 59.52 kB / 0.6488 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001728/0.793, allocations: 203.8 kB / 0.649 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005328/0.7984, allocations: 3.217 MB / 0.6521 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03017/0.8286, allocations: 13.9 MB / 0.6657 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4093/1.238, allocations: 57.36 MB / 0.7217 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0146/1.253, allocations: 6.501 MB / 0.728 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00532/1.258, allocations: 3.614 MB / 0.7316 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02571/1.284, allocations: 14.43 MB / 0.7457 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.967e-05/1.284, allocations: 68.19 kB / 0.7457 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 9.007e-06/1.284, allocations: 3.125 kB / 0.7457 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.1343/1.418, allocations: 41.99 MB / 0.7867 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/1.418, allocations: 213.5 kB / 0.7869 GB, free: 113.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008107/1.426, allocations: 5.461 MB / 0.7923 GB, free: 107.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009203/1.427, allocations: 70.25 kB / 0.7923 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002515/1.43, allocations: 4.412 MB / 0.7967 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001811/1.432, allocations: 1.256 MB / 0.7979 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005451/1.432, allocations: 174.5 kB / 0.798 GB, free: 101.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004052/1.433, allocations: 0.678 MB / 0.7987 GB, free: 101.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006085/1.439, allocations: 4.613 MB / 0.8032 GB, free: 96.46 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009041/1.448, allocations: 9.573 MB / 0.8126 GB, free: 84.52 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/1.458, allocations: 6.501 MB / 0.8189 GB, free: 78.12 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001633/1.459, allocations: 48 kB / 0.819 GB, free: 78.08 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04075/1.499, allocations: 18.96 MB / 0.8375 GB, free: 59.08 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.499, allocations: 80 kB / 0.8375 GB, free: 59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001751/1.5, allocations: 172 kB / 0.8377 GB, free: 58.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01911/1.519, allocations: 5.83 MB / 0.8434 GB, free: 52.99 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007598/1.526, allocations: 2.059 MB / 0.8454 GB, free: 50.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02777/1.554, allocations: 24.29 MB / 0.8691 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008/1.562, allocations: 0.5601 MB / 0.8697 GB, free: 25.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001891/1.564, allocations: 0.5016 MB / 0.8702 GB, free: 25.3 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.007715/1.572, allocations: 3.1 MB / 0.8732 GB, free: 22.19 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001657/1.574, allocations: 0.4936 MB / 0.8737 GB, free: 21.69 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02726/1.601, allocations: 12.68 MB / 0.8861 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.496e-05/1.601, allocations: 55.98 kB / 0.8861 GB, free: 8.895 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.341e-05/1.601, allocations: 15.95 kB / 0.8861 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.708e-05/1.601, allocations: 19.94 kB / 0.8861 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05018/1.651, allocations: 24.41 MB / 0.91 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.905e-05/1.651, allocations: 12 kB / 0.91 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003355/1.655, allocations: 0.5817 MB / 0.9106 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01796/1.673, allocations: 4.842 MB / 0.9153 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001026/1.674, allocations: 60.81 kB / 0.9153 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3404/2.014, allocations: 19.54 MB / 0.9344 GB, free: 200.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/2.014, allocations: 7.25 kB / 0.9344 GB, free: 200.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03523/2.05, allocations: 17.1 MB / 0.9511 GB, free: 194.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001912/2.052, allocations: 0.5458 MB / 0.9517 GB, free: 194.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001462/2.053, allocations: 55.53 kB / 0.9517 GB, free: 194.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002965/2.056, allocations: 261.6 kB / 0.952 GB, free: 194.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007614/2.057, allocations: 193.6 kB / 0.9522 GB, free: 194.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002603/2.057, allocations: 81.66 kB / 0.9522 GB, free: 194.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005804/2.063, allocations: 3.393 MB / 0.9555 GB, free: 193.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.81e-07/2.063, allocations: 0 / 0.9555 GB, free: 193.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008728/2.072, allocations: 1.716 MB / 0.9572 GB, free: 193.1 MB / 0.5606 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.0339/2.106, allocations: 17.76 MB / 0.9746 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01596/2.122, allocations: 10.61 MB / 0.9849 GB, free: 172.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/2.122, allocations: 2.688 kB / 0.9849 GB, free: 172.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005549/2.127, allocations: 4.039 MB / 0.9889 GB, free: 168.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00493/2.132, allocations: 0.6226 MB / 0.9895 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1126/2.245, allocations: 64.67 MB / 1.053 GB, free: 98.69 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00566/2.25, allocations: 4.619 MB / 1.057 GB, free: 94.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007177/2.258, allocations: 2.991 MB / 1.06 GB, free: 91.04 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004962/2.263, allocations: 2.921 MB / 1.063 GB, free: 88.12 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/2.263, allocations: 0 / 1.063 GB, free: 88.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4767/2.739, allocations: 135.7 MB / 1.195 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/2.74, allocations: 223.6 kB / 1.196 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.063/7.802, allocations: 0 / 1.196 GB, free: 165.4 MB / 0.5606 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