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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.00161/0.00161, allocations: 198.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000807/0.000807, allocations: 91.56 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2015/0.2015, allocations: 45.14 MB / 383.8 MB, free: 308 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.544e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1135, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4101/0.5237, allocations: 111.5 MB / 0.6133 GB, free: 7.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.524, allocations: 78.33 kB / 0.6134 GB, free: 7.051 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3118/0.8358, allocations: 128.5 MB / 0.7389 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.693e-06/0.8359, allocations: 0 / 0.7389 GB, free: 14.4 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002767/0.8362, allocations: 116 kB / 0.739 GB, free: 14.29 MB / 0.5261 GB 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.01944/0.8556, allocations: 6.341 MB / 0.7452 GB, free: 7.875 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.8557, allocations: 12.03 kB / 0.7452 GB, free: 7.863 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3266/1.182, allocations: 8.313 MB / 0.7534 GB, free: 117 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01911/1.201, allocations: 6.423 MB / 0.7596 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004077/1.202, allocations: 192.4 kB / 0.7598 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003134/1.205, allocations: 354.1 kB / 0.7601 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.021/1.226, allocations: 10.16 MB / 0.7701 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02819/1.254, allocations: 14.09 MB / 0.7838 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004483/1.255, allocations: 70.06 kB / 0.7839 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002299/1.257, allocations: 40.72 kB / 0.7839 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00204/1.259, allocations: 1.624 MB / 0.7855 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0642/1.323, allocations: 61.46 MB / 0.8455 GB, free: 74.69 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005608/1.329, allocations: 5.597 MB / 0.851 GB, free: 71.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003465/1.332, allocations: 3.432 MB / 0.8544 GB, free: 70.29 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01808/1.351, allocations: 14.11 MB / 0.8681 GB, free: 63.13 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/1.351, allocations: 65.94 kB / 0.8682 GB, free: 63.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=289): time 6.272e-06/1.351, allocations: 0 / 0.8682 GB, free: 63.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=339): time 0.06278/1.413, allocations: 30.81 MB / 0.8983 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/1.414, allocations: 221.1 kB / 0.8985 GB, free: 41.51 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005359/1.419, allocations: 4.269 MB / 0.9027 GB, free: 37.78 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007092/1.42, allocations: 25.7 kB / 0.9027 GB, free: 37.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001748/1.421, allocations: 4.523 MB / 0.9071 GB, free: 33.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00107/1.423, allocations: 1.217 MB / 0.9083 GB, free: 32.54 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003971/1.423, allocations: 0 / 0.9083 GB, free: 32.54 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003528/1.423, allocations: 0.7057 MB / 0.909 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004287/1.428, allocations: 4.396 MB / 0.9133 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006193/1.434, allocations: 9.588 MB / 0.9226 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007464/1.441, allocations: 6.38 MB / 0.9289 GB, free: 10.99 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001394/1.441, allocations: 55.95 kB / 0.9289 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03957/1.481, allocations: 17.77 MB / 0.9463 GB, free: 13 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.481, allocations: 84 kB / 0.9464 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001826/1.481, allocations: 184 kB / 0.9465 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02119/1.503, allocations: 5.631 MB / 0.952 GB, free: 7.613 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007997/1.511, allocations: 2.152 MB / 0.9541 GB, free: 5.457 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3455/1.856, allocations: 21.61 MB / 0.9752 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009844/1.866, allocations: 392.9 kB / 0.9756 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00258/1.869, allocations: 0.5274 MB / 0.9761 GB, free: 114.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 841 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1109): * Single equations (assignments): 1101 * 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.003386/1.872, allocations: 0.5608 MB / 0.9767 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0294/1.901, allocations: 11.92 MB / 0.9883 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001875/1.903, allocations: 478.9 kB / 0.9888 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02795/1.931, allocations: 12.1 MB / 1.001 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001166/1.932, allocations: 54.94 kB / 1.001 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.313e-05/1.932, allocations: 9.938 kB / 1.001 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.08e-05/1.932, allocations: 17.47 kB / 1.001 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04487/1.977, allocations: 22.58 MB / 1.023 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.453e-05/1.977, allocations: 3.812 kB / 1.023 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003068/1.98, allocations: 0.5698 MB / 1.023 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01902/1.999, allocations: 4.638 MB / 1.028 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007099/2, allocations: 10.94 kB / 1.028 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02073/2.02, allocations: 17.33 MB / 1.045 GB, free: 95.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/2.02, allocations: 3.938 kB / 1.045 GB, free: 95.83 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03102/2.051, allocations: 17.08 MB / 1.061 GB, free: 89.15 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/2.053, allocations: 0.4896 MB / 1.062 GB, free: 88.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001435/2.054, allocations: 15.19 kB / 1.062 GB, free: 88.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003232/2.058, allocations: 202.2 kB / 1.062 GB, free: 88.78 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006305/2.058, allocations: 195.3 kB / 1.062 GB, free: 88.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002617/2.059, allocations: 84.72 kB / 1.062 GB, free: 88.73 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004163/2.063, allocations: 2.837 MB / 1.065 GB, free: 87.72 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.1e-07/2.063, allocations: 3.281 kB / 1.065 GB, free: 87.72 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008419/2.071, allocations: 1.503 MB / 1.067 GB, free: 87.72 MB / 0.5417 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 () * 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.03051/2.102, allocations: 18.81 MB / 1.085 GB, free: 72.57 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01475/2.117, allocations: 10.07 MB / 1.095 GB, free: 63.82 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/2.117, allocations: 0 / 1.095 GB, free: 63.82 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005104/2.122, allocations: 3.854 MB / 1.099 GB, free: 60.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003614/2.125, allocations: 461.2 kB / 1.099 GB, free: 59.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03657/2.162, allocations: 15.22 MB / 1.114 GB, free: 44.34 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008047/2.17, allocations: 4.75 MB / 1.119 GB, free: 39.6 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008886/2.179, allocations: 3.097 MB / 1.122 GB, free: 36.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005282/2.184, allocations: 2.913 MB / 1.124 GB, free: 33.77 MB / 0.5417 GB Notification: Performance of SimCode: time 6.51e-07/2.184, allocations: 0 / 1.124 GB, free: 33.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.518/2.702, allocations: 127.9 MB / 1.249 GB, free: 108.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/2.703, allocations: 157.1 kB / 1.249 GB, free: 108.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.931/7.634, allocations: 0 / 1.249 GB, free: 108.5 MB / 0.5573 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