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/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.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/Complex trunk/package.mo): time 0.002101/0.002101, allocations: 197.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.495/1.495, allocations: 225.6 MB / 234.8 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008911/0.0008912, allocations: 95.28 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2167/0.2167, allocations: 45.15 MB / 383.8 MB, free: 312 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.569e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1263, allocations: 63.25 MB / 0.5045 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4466/0.573, allocations: 103.5 MB / 0.6055 GB, free: 15 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.5732, allocations: 76.83 kB / 0.6056 GB, free: 14.96 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2189/0.7921, allocations: 85.67 MB / 0.6892 GB, free: 1.551 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7922, allocations: 0 / 0.6892 GB, free: 1.551 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002053/0.7924, allocations: 71.94 kB / 0.6893 GB, free: 1.48 MB / 474.7 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.01689/0.8093, allocations: 3.962 MB / 0.6932 GB, free: 13.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.8094, allocations: 8.031 kB / 0.6932 GB, free: 13.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02549/0.8349, allocations: 6.445 MB / 0.6995 GB, free: 6.988 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01342/0.8483, allocations: 4.537 MB / 0.7039 GB, free: 2.398 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002866/0.8487, allocations: 116 kB / 0.704 GB, free: 2.285 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002731/0.8514, allocations: 215.9 kB / 0.7042 GB, free: 2.074 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01549/0.8669, allocations: 6.899 MB / 0.7109 GB, free: 11.17 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02075/0.8877, allocations: 9.207 MB / 0.7199 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/0.888, allocations: 27.75 kB / 0.72 GB, free: 1.426 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001697/0.8897, allocations: 16 kB / 0.72 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001801/0.8915, allocations: 1.152 MB / 0.7211 GB, free: 264 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3791/1.271, allocations: 35.1 MB / 0.7554 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005935/1.277, allocations: 4.08 MB / 0.7594 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004273/1.281, allocations: 2.269 MB / 0.7616 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002253/1.283, allocations: 1.88 MB / 0.7634 GB, free: 126.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.517e-05/1.283, allocations: 54.98 kB / 0.7635 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=226): time 6.993e-06/1.283, allocations: 3.031 kB / 0.7635 GB, free: 126.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=233): time 0.02813/1.311, allocations: 11.74 MB / 0.7749 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/1.311, allocations: 72.69 kB / 0.775 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003397/1.315, allocations: 2.391 MB / 0.7773 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005047/1.315, allocations: 25.7 kB / 0.7774 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001708/1.317, allocations: 2.763 MB / 0.7801 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001088/1.318, allocations: 0.8402 MB / 0.7809 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/1.318, allocations: 3.219 kB / 0.7809 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003135/1.319, allocations: 0.5608 MB / 0.7814 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002948/1.322, allocations: 2.527 MB / 0.7839 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004436/1.326, allocations: 5.743 MB / 0.7895 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005003/1.331, allocations: 3.817 MB / 0.7932 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-05/1.331, allocations: 32.28 kB / 0.7933 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.05885/1.39, allocations: 16.59 MB / 0.8095 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.531e-05/1.39, allocations: 55.28 kB / 0.8095 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03994/1.43, allocations: 10.48 MB / 0.8198 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04454/1.475, allocations: 8.659 MB / 0.8282 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005083/1.48, allocations: 1.326 MB / 0.8295 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02103/1.501, allocations: 14.69 MB / 0.8439 GB, free: 98.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004595/1.506, allocations: 335.4 kB / 0.8442 GB, free: 98.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/1.507, allocations: 342.7 kB / 0.8445 GB, free: 98.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 685 * 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.0008702/1.508, allocations: 380.3 kB / 0.8449 GB, free: 97.85 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006373/1.514, allocations: 4.468 MB / 0.8492 GB, free: 93.37 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005791/1.515, allocations: 275.9 kB / 0.8495 GB, free: 93.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007265/1.522, allocations: 4.955 MB / 0.8543 GB, free: 88.12 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005579/1.527, allocations: 4.271 MB / 0.8585 GB, free: 83.85 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/1.528, allocations: 5.312 kB / 0.8585 GB, free: 83.84 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/1.528, allocations: 7.969 kB / 0.8585 GB, free: 83.84 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/1.544, allocations: 11.94 MB / 0.8702 GB, free: 71.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/1.544, allocations: 8 kB / 0.8702 GB, free: 71.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/1.545, allocations: 411.3 kB / 0.8706 GB, free: 71.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002547/1.548, allocations: 0.9307 MB / 0.8715 GB, free: 70.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/1.548, allocations: 27.97 kB / 0.8715 GB, free: 70.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004648/1.553, allocations: 5.282 MB / 0.8767 GB, free: 64.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006049/1.553, allocations: 1.4 MB / 0.878 GB, free: 63.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008741/1.562, allocations: 8.25 MB / 0.8861 GB, free: 54.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000817/1.563, allocations: 325.6 kB / 0.8864 GB, free: 54.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003402/1.563, allocations: 19.98 kB / 0.8864 GB, free: 54.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/1.565, allocations: 171.6 kB / 0.8866 GB, free: 54.37 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/1.565, allocations: 145 kB / 0.8867 GB, free: 54.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/1.565, allocations: 80.61 kB / 0.8868 GB, free: 54.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001971/1.567, allocations: 1.569 MB / 0.8883 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.42e-07/1.567, allocations: 0 / 0.8883 GB, free: 52.59 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004177/1.571, allocations: 1.017 MB / 0.8893 GB, free: 51.58 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 163 * 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.00951/1.581, allocations: 10.93 MB / 0.9 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009429/1.59, allocations: 6.274 MB / 0.9061 GB, free: 34.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.59, allocations: 0 / 0.9061 GB, free: 34.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003137/1.593, allocations: 2.461 MB / 0.9085 GB, free: 31.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/1.595, allocations: 247.1 kB / 0.9088 GB, free: 31.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01852/1.614, allocations: 9.692 MB / 0.9182 GB, free: 21.53 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002665/1.616, allocations: 3.245 MB / 0.9214 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004553/1.621, allocations: 2.177 MB / 0.9235 GB, free: 16.09 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002407/1.624, allocations: 1.675 MB / 0.9252 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of SimCode: time 1.122e-06/1.624, allocations: 3.172 kB / 0.9252 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4135/2.037, allocations: 77.12 MB / 1 GB, free: 141.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/2.037, allocations: 128.6 kB / 1.001 GB, free: 141.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.56/5.597, allocations: 0 / 1.001 GB, free: 141.4 MB / 0.5417 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