Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.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.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 101.3 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.001736/0.001736, allocations: 204.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2355/0.2355, allocations: 45.91 MB / 344 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.0002759, allocations: 12 kB / 418.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1344, allocations: 63.47 MB / 481.5 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02226/0.1567, allocations: 21.95 MB / 0.4917 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01528/0.172, allocations: 6.173 MB / 0.4977 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004819/0.1769, allocations: 103.8 kB / 0.4978 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004429/0.1813, allocations: 1.124 MB / 0.4989 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01228/0.1936, allocations: 3.452 MB / 0.5023 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.196, allocations: 455.1 kB / 0.5027 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00505/0.201, allocations: 2.183 MB / 0.5048 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3052/0.5063, allocations: 2.136 MB / 0.5069 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002398/0.5087, allocations: 0.8489 MB / 0.5078 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002601/0.5113, allocations: 1.188 MB / 0.5089 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00107/0.5124, allocations: 127 kB / 0.509 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003045/0.5155, allocations: 1.018 MB / 0.51 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002157/0.5177, allocations: 1.378 MB / 0.5114 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001599/0.5193, allocations: 0.732 MB / 0.5121 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008824/0.5281, allocations: 4.706 MB / 0.5167 GB, free: 11.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.5281, allocations: 3.875 kB / 0.5167 GB, free: 11.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.5282, allocations: 1.375 kB / 0.5167 GB, free: 11.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002208/0.5284, allocations: 0 / 0.5167 GB, free: 11.68 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.009879/0.5383, allocations: 3.46 MB / 0.5201 GB, free: 9.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/0.5383, allocations: 11.44 kB / 0.5201 GB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002066/0.5404, allocations: 0.6855 MB / 0.5207 GB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02338/0.5638, allocations: 6.889 MB / 0.5275 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008271/0.5721, allocations: 2.377 MB / 0.5298 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002691/0.5724, allocations: 179.7 kB / 0.53 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002436/0.5749, allocations: 316.4 kB / 0.5303 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02137/0.5963, allocations: 10.79 MB / 0.5408 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-05/0.5964, allocations: 23.67 kB / 0.5408 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004435/0.5969, allocations: 114.8 kB / 0.5409 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003379/0.6002, allocations: 2.461 MB / 0.5433 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02218/0.6224, allocations: 10.23 MB / 0.5533 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06582/0.6883, allocations: 35.78 MB / 0.5883 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/0.7003, allocations: 5.605 MB / 0.5938 GB, free: 1.207 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001874/0.7022, allocations: 1.884 MB / 0.5956 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.7023, allocations: 52.56 kB / 0.5956 GB, free: 14.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=224): time 5.831e-06/0.7023, allocations: 0 / 0.5956 GB, free: 14.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.04716/0.7495, allocations: 15.49 MB / 0.6108 GB, free: 15.26 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001529/0.751, allocations: 1.53 MB / 0.6123 GB, free: 13.59 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004958/0.756, allocations: 3.016 MB / 0.6152 GB, free: 10.56 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007081/0.7568, allocations: 53.7 kB / 0.6153 GB, free: 10.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002245/0.759, allocations: 2.682 MB / 0.6179 GB, free: 7.832 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001552/0.7606, allocations: 0.8496 MB / 0.6187 GB, free: 6.988 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.7609, allocations: 107.5 kB / 0.6188 GB, free: 6.887 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003834/0.7613, allocations: 0.5415 MB / 0.6193 GB, free: 6.34 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004008/0.7653, allocations: 2.607 MB / 0.6219 GB, free: 3.727 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006739/0.7721, allocations: 5.593 MB / 0.6274 GB, free: 12.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006461/0.7786, allocations: 3.797 MB / 0.6311 GB, free: 8.902 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.357e-05/0.7787, allocations: 31.95 kB / 0.6311 GB, free: 8.871 MB / 478.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06785/0.8465, allocations: 17.08 MB / 0.6478 GB, free: 7.766 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000166/0.8467, allocations: 51.95 kB / 0.6478 GB, free: 7.715 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04662/0.8934, allocations: 10.62 MB / 0.6582 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04761/0.941, allocations: 8.655 MB / 0.6666 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005658/0.9467, allocations: 1.302 MB / 0.6679 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03116/0.9779, allocations: 16.88 MB / 0.6844 GB, free: 1.941 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00579/0.9838, allocations: 423.5 kB / 0.6848 GB, free: 1.527 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001571/0.9854, allocations: 322.3 kB / 0.6851 GB, free: 1.215 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.006084/0.9915, allocations: 2.028 MB / 0.6871 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/0.9927, allocations: 276.4 kB / 0.6873 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/1.004, allocations: 5.103 MB / 0.6923 GB, free: 9.77 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008704/1.013, allocations: 4.396 MB / 0.6966 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/1.013, allocations: 0 / 0.6966 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.817e-05/1.013, allocations: 7.969 kB / 0.6966 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02972/1.043, allocations: 12.94 MB / 0.7093 GB, free: 8.266 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.043, allocations: 4 kB / 0.7093 GB, free: 8.262 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003227/1.046, allocations: 455.2 kB / 0.7097 GB, free: 7.816 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004264/1.05, allocations: 0.9445 MB / 0.7106 GB, free: 6.863 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007695/1.051, allocations: 51.92 kB / 0.7107 GB, free: 6.812 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/1.061, allocations: 5.573 MB / 0.7161 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3038/1.365, allocations: 1.47 MB / 0.7176 GB, free: 195.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01572/1.381, allocations: 8.358 MB / 0.7257 GB, free: 194 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/1.382, allocations: 337.9 kB / 0.726 GB, free: 193.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004875/1.383, allocations: 45.08 kB / 0.7261 GB, free: 193.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/1.385, allocations: 196.8 kB / 0.7263 GB, free: 193.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/1.385, allocations: 148.3 kB / 0.7264 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002137/1.385, allocations: 68.45 kB / 0.7265 GB, free: 193.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004016/1.389, allocations: 1.879 MB / 0.7283 GB, free: 193.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/1.389, allocations: 0 / 0.7283 GB, free: 193.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006908/1.396, allocations: 1.121 MB / 0.7294 GB, free: 193.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01243/1.409, allocations: 10.95 MB / 0.7401 GB, free: 187.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01031/1.419, allocations: 6.486 MB / 0.7464 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/1.419, allocations: 3.938 kB / 0.7464 GB, free: 184.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003574/1.423, allocations: 2.525 MB / 0.7489 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/1.425, allocations: 342.3 kB / 0.7492 GB, free: 183.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1128/1.538, allocations: 110.2 MB / 0.8569 GB, free: 73.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003127/1.541, allocations: 3.248 MB / 0.8601 GB, free: 70.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004418/1.545, allocations: 2.067 MB / 0.8621 GB, free: 67.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002302/1.548, allocations: 1.675 MB / 0.8637 GB, free: 66.27 MB / 0.545 GB Notification: Performance of SimCode: time 1.744e-06/1.548, allocations: 4 kB / 0.8637 GB, free: 66.27 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3986/1.946, allocations: 80.16 MB / 0.942 GB, free: 186.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002219/1.947, allocations: 206.7 kB / 0.9422 GB, free: 186.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.56/5.507, allocations: 0 / 0.9422 GB, free: 186.4 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat