Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",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.001176/0.001176, allocations: 93.94 kB / 16.98 MB, free: 5.938 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.001431/0.001431, allocations: 186.3 kB / 17.88 MB, free: 5.594 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.336/1.336, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2233/0.2233, allocations: 44.22 MB / 337.1 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003146/0.0003146, allocations: 16 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1385, allocations: 61.92 MB / 471.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.02162/0.1602, allocations: 21.93 MB / 493.5 MB, free: 7.609 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.1749, allocations: 6.142 MB / 499.6 MB, free: 1.449 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004018/0.1789, allocations: 107.7 kB / 499.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003281/0.1822, allocations: 1.124 MB / 0.4891 GB, free: 220 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01181/0.1941, allocations: 3.468 MB / 0.4925 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001816/0.1959, allocations: 447.2 kB / 0.4929 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004063/0.2, allocations: 2.116 MB / 0.495 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003043/0.203, allocations: 2.139 MB / 0.4971 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.2044, allocations: 0.8485 MB / 0.4979 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001418/0.2058, allocations: 1.184 MB / 0.4991 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000312/0.2061, allocations: 128 kB / 0.4992 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001839/0.208, allocations: 1.042 MB / 0.5002 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.2092, allocations: 1.375 MB / 0.5015 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006872/0.2098, allocations: 0.7336 MB / 0.5023 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2862/0.4961, allocations: 4.712 MB / 0.5069 GB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4961, allocations: 1.344 kB / 0.5069 GB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.13e-06/0.4962, allocations: 0.5625 kB / 0.5069 GB, free: 15.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002602/0.4964, allocations: 0 / 0.5069 GB, free: 15.13 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.009944/0.5064, allocations: 3.453 MB / 0.5102 GB, free: 13.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.5065, allocations: 9.656 kB / 0.5102 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003093/0.5096, allocations: 0.6875 MB / 0.5109 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0232/0.5328, allocations: 6.415 MB / 0.5172 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007936/0.5408, allocations: 2.369 MB / 0.5195 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002635/0.5411, allocations: 182.7 kB / 0.5197 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00188/0.5429, allocations: 310.5 kB / 0.52 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0202/0.5632, allocations: 10.8 MB / 0.5305 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/0.5633, allocations: 27.06 kB / 0.5305 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000625/0.5639, allocations: 109.8 kB / 0.5306 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004353/0.5683, allocations: 2.459 MB / 0.533 GB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02064/0.589, allocations: 10.24 MB / 0.543 GB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06013/0.6491, allocations: 35.79 MB / 0.578 GB, free: 3.215 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01855/0.6678, allocations: 5.608 MB / 0.5835 GB, free: 13.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002966/0.6708, allocations: 1.874 MB / 0.5853 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.565e-05/0.6709, allocations: 52.56 kB / 0.5854 GB, free: 11.14 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 1.089e-05/0.6709, allocations: 4 kB / 0.5854 GB, free: 11.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.06834/0.7393, allocations: 15.49 MB / 0.6005 GB, free: 11.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001738/0.741, allocations: 1.525 MB / 0.602 GB, free: 9.789 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007279/0.7483, allocations: 3.016 MB / 0.6049 GB, free: 6.762 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008211/0.7492, allocations: 49.7 kB / 0.605 GB, free: 6.707 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003752/0.753, allocations: 2.69 MB / 0.6076 GB, free: 4.027 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002308/0.7553, allocations: 0.847 MB / 0.6084 GB, free: 3.188 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00121/0.7565, allocations: 109.1 kB / 0.6085 GB, free: 3.086 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.001058/0.7576, allocations: 0.5415 MB / 0.6091 GB, free: 2.539 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006818/0.7645, allocations: 2.607 MB / 0.6116 GB, free: 15.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/0.7748, allocations: 5.595 MB / 0.6171 GB, free: 8.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00772/0.7825, allocations: 3.796 MB / 0.6208 GB, free: 5.207 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001299/0.7827, allocations: 34.16 kB / 0.6208 GB, free: 5.176 MB / 462.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06755/0.8503, allocations: 18.96 MB / 0.6393 GB, free: 2.809 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.8505, allocations: 50.19 kB / 0.6394 GB, free: 2.762 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05771/0.9082, allocations: 12.02 MB / 0.6511 GB, free: 6.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04777/0.956, allocations: 10.3 MB / 0.6612 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005347/0.9614, allocations: 1.302 MB / 0.6624 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03207/0.9935, allocations: 17.27 MB / 0.6793 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005079/0.9987, allocations: 443.1 kB / 0.6797 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001421/1, allocations: 325.7 kB / 0.68 GB, free: 8.809 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.005316/1.005, allocations: 2.023 MB / 0.682 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007345/1.006, allocations: 272.4 kB / 0.6823 GB, free: 6.504 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009372/1.016, allocations: 5.11 MB / 0.6873 GB, free: 1.363 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007641/1.023, allocations: 4.394 MB / 0.6915 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/1.023, allocations: 0 / 0.6915 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.303e-05/1.023, allocations: 15.95 kB / 0.6916 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3137/1.337, allocations: 12.92 MB / 0.7042 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.253e-05/1.337, allocations: 7.344 kB / 0.7042 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002642/1.34, allocations: 458.6 kB / 0.7046 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00335/1.343, allocations: 0.9359 MB / 0.7055 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005163/1.344, allocations: 51.12 kB / 0.7056 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006757/1.35, allocations: 5.581 MB / 0.711 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008099/1.351, allocations: 1.471 MB / 0.7125 GB, free: 185.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/1.364, allocations: 8.349 MB / 0.7206 GB, free: 182.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/1.365, allocations: 344.8 kB / 0.721 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005407/1.366, allocations: 54.88 kB / 0.721 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/1.367, allocations: 191.7 kB / 0.7212 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003242/1.368, allocations: 141.2 kB / 0.7213 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/1.368, allocations: 67.7 kB / 0.7214 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002529/1.37, allocations: 1.874 MB / 0.7232 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.37, allocations: 0 / 0.7232 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004882/1.375, allocations: 1.118 MB / 0.7243 GB, free: 181.6 MB / 0.5294 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.0108/1.386, allocations: 10.96 MB / 0.735 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01021/1.396, allocations: 6.557 MB / 0.7414 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.17e-05/1.396, allocations: 4 kB / 0.7414 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003544/1.4, allocations: 2.522 MB / 0.7439 GB, free: 170 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/1.402, allocations: 336.1 kB / 0.7442 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1046/1.507, allocations: 111.6 MB / 0.8532 GB, free: 55.02 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003145/1.51, allocations: 3.24 MB / 0.8564 GB, free: 51.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004536/1.514, allocations: 2.073 MB / 0.8584 GB, free: 49.68 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/1.517, allocations: 1.675 MB / 0.8601 GB, free: 48 MB / 0.5294 GB Notification: Performance of SimCode: time 8.42e-07/1.517, allocations: 4 kB / 0.8601 GB, free: 48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4066/1.923, allocations: 80.26 MB / 0.9385 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/1.924, allocations: 211.4 kB / 0.9387 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.522/5.446, allocations: 0 / 0.9387 GB, free: 174.3 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat