Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001039, allocations: 95.14 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 204 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2529/0.2529, allocations: 45.92 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.00032, allocations: 4 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1529, allocations: 63.47 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3992/0.5522, allocations: 45.73 MB / 0.5149 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03203/0.5843, allocations: 11.11 MB / 0.5257 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01275/0.597, allocations: 228.6 kB / 0.526 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009574/0.6067, allocations: 2.285 MB / 0.5282 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02735/0.634, allocations: 6.67 MB / 0.5347 GB, free: 7.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004592/0.6387, allocations: 0.8402 MB / 0.5355 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07267/0.7114, allocations: 48.81 MB / 0.5832 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009102/0.7205, allocations: 5.075 MB / 0.5881 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005723/0.7263, allocations: 1.557 MB / 0.5897 GB, free: 8.605 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006106/0.7325, allocations: 2.278 MB / 0.5919 GB, free: 6.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001977/0.7345, allocations: 236 kB / 0.5921 GB, free: 6.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004003/0.7385, allocations: 1.081 MB / 0.5932 GB, free: 5.008 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003917/0.7425, allocations: 2.396 MB / 0.5955 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002495/0.745, allocations: 1.205 MB / 0.5967 GB, free: 1.391 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01197/0.757, allocations: 8.083 MB / 0.6046 GB, free: 9.289 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.757, allocations: 0 / 0.6046 GB, free: 9.289 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.757, allocations: 0 / 0.6046 GB, free: 9.289 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004176/0.7574, allocations: 0 / 0.6046 GB, free: 9.289 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.01799/0.7754, allocations: 6.48 MB / 0.6109 GB, free: 2.727 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.7755, allocations: 8.031 kB / 0.6109 GB, free: 2.719 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004208/0.7797, allocations: 1.136 MB / 0.612 GB, free: 1.566 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04991/0.8296, allocations: 9.719 MB / 0.6215 GB, free: 7.82 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.8417, allocations: 4.365 MB / 0.6258 GB, free: 3.395 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/0.8421, allocations: 316 kB / 0.6261 GB, free: 3.082 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002249/0.8443, allocations: 435.7 kB / 0.6265 GB, free: 2.656 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03285/0.8772, allocations: 15.77 MB / 0.6419 GB, free: 1.957 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002146/0.8774, allocations: 63.33 kB / 0.642 GB, free: 1.895 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/0.8786, allocations: 215.7 kB / 0.6422 GB, free: 1.684 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005318/0.8839, allocations: 3.216 MB / 0.6453 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03231/0.9163, allocations: 14.09 MB / 0.6591 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4197/1.336, allocations: 57.54 MB / 0.7153 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01455/1.351, allocations: 6.58 MB / 0.7217 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02896/1.38, allocations: 14.56 MB / 0.7359 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.89e-05/1.38, allocations: 60.44 kB / 0.736 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 5.911e-06/1.38, allocations: 0 / 0.736 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.1613/1.541, allocations: 42.85 MB / 0.7778 GB, free: 110 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.972e-05/1.541, allocations: 221.1 kB / 0.778 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0104/1.552, allocations: 5.697 MB / 0.7836 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001194/1.553, allocations: 74.8 kB / 0.7837 GB, free: 104 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003304/1.556, allocations: 4.41 MB / 0.788 GB, free: 99.57 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001927/1.558, allocations: 1.252 MB / 0.7892 GB, free: 98.33 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001041/1.559, allocations: 176 kB / 0.7894 GB, free: 98.16 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005672/1.56, allocations: 0.6819 MB / 0.79 GB, free: 97.46 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007105/1.567, allocations: 4.608 MB / 0.7945 GB, free: 92.85 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009692/1.577, allocations: 9.542 MB / 0.8038 GB, free: 80.94 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009773/1.586, allocations: 6.498 MB / 0.8102 GB, free: 74.57 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002231/1.587, allocations: 52 kB / 0.8102 GB, free: 74.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04661/1.633, allocations: 18.95 MB / 0.8287 GB, free: 55.54 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002985/1.634, allocations: 76 kB / 0.8288 GB, free: 55.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003876/1.634, allocations: 176 kB / 0.829 GB, free: 55.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02227/1.656, allocations: 5.835 MB / 0.8347 GB, free: 49.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007956/1.664, allocations: 2.063 MB / 0.8367 GB, free: 47.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0309/1.695, allocations: 24.95 MB / 0.8611 GB, free: 22.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008801/1.704, allocations: 0.5461 MB / 0.8616 GB, free: 21.62 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002288/1.706, allocations: 0.5013 MB / 0.8621 GB, free: 21.12 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.007891/1.714, allocations: 3.093 MB / 0.8651 GB, free: 18.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/1.716, allocations: 0.4936 MB / 0.8656 GB, free: 17.52 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03265/1.749, allocations: 12.68 MB / 0.878 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001323/1.749, allocations: 57.08 kB / 0.878 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.655e-05/1.749, allocations: 8 kB / 0.878 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001034/1.749, allocations: 15.91 kB / 0.878 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07098/1.82, allocations: 24.45 MB / 0.9019 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.713e-05/1.82, allocations: 4 kB / 0.9019 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003497/1.824, allocations: 0.5772 MB / 0.9025 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02055/1.844, allocations: 4.833 MB / 0.9072 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001435/1.846, allocations: 57.09 kB / 0.9073 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03075/1.877, allocations: 20.19 MB / 0.927 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.518e-05/1.877, allocations: 11.94 kB / 0.927 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4512/2.328, allocations: 17.83 MB / 0.9444 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002483/2.331, allocations: 0.5463 MB / 0.9449 GB, free: 206.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002243/2.333, allocations: 55.72 kB / 0.945 GB, free: 206 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004524/2.337, allocations: 263.8 kB / 0.9452 GB, free: 206 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001158/2.339, allocations: 197.3 kB / 0.9454 GB, free: 206 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003424/2.339, allocations: 86.56 kB / 0.9455 GB, free: 205.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00787/2.347, allocations: 3.588 MB / 0.949 GB, free: 204.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.02e-07/2.347, allocations: 4 kB / 0.949 GB, free: 204.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01065/2.357, allocations: 1.726 MB / 0.9507 GB, free: 204.6 MB / 0.5762 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.03724/2.395, allocations: 19.54 MB / 0.9698 GB, free: 196.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01928/2.414, allocations: 10.61 MB / 0.9802 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.619e-05/2.414, allocations: 4 kB / 0.9802 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006458/2.421, allocations: 4.046 MB / 0.9841 GB, free: 185.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004868/2.425, allocations: 0.5746 MB / 0.9847 GB, free: 185.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08965/2.515, allocations: 149.3 MB / 1.13 GB, free: 31.11 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006396/2.522, allocations: 4.758 MB / 1.135 GB, free: 26.32 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.007796/2.529, allocations: 3.005 MB / 1.138 GB, free: 23.31 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005008/2.535, allocations: 2.924 MB / 1.141 GB, free: 20.39 MB / 0.5762 GB Notification: Performance of SimCode: time 1.733e-06/2.535, allocations: 0 / 1.141 GB, free: 20.39 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5553/3.09, allocations: 135.1 MB / 1.273 GB, free: 120.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/3.09, allocations: 226.1 kB / 1.273 GB, free: 119.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.957/8.047, allocations: 3.844 kB / 1.273 GB, free: 119.8 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat