Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia.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.Rotational.InitializationConversion.Inertia,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_InitializationConversion_Inertia",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.InitializationConversion.Inertia,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_InitializationConversion_Inertia",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.001004/0.001004, allocations: 96.27 kB / 16.99 MB, free: 5.941 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.0009562/0.0009562, allocations: 180.7 kB / 17.87 MB, free: 5.609 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.381/1.381, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2134/0.2134, allocations: 44.22 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002943, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 61.91 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.Inertia): time 0.002972/0.1168, allocations: 2.399 MB / 473.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007638/0.1176, allocations: 454.6 kB / 474.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.1178, allocations: 11.94 kB / 474.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.1179, allocations: 47.62 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003639/0.1183, allocations: 171.5 kB / 474.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1185, allocations: 71.92 kB / 474.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.119, allocations: 399.2 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002766/0.1193, allocations: 128.9 kB / 475.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002113/0.1195, allocations: 167.4 kB / 475.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.1198, allocations: 187.2 kB / 475.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.956e-05/0.1198, allocations: 24 kB / 475.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.256e-05/0.1199, allocations: 24 kB / 475.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.385e-05/0.12, allocations: 83.69 kB / 475.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.1201, allocations: 113.5 kB / 475.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000372/0.1205, allocations: 379.1 kB / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1205, allocations: 0 / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1205, allocations: 0 / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.1205, allocations: 0 / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.0009942/0.1216, allocations: 0.6432 MB / 476.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1216, allocations: 8.031 kB / 476.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.995e-05/0.1217, allocations: 86.52 kB / 476.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.483e-05/0.1218, allocations: 51.44 kB / 476.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004324/0.1222, allocations: 286.3 kB / 477.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.1223, allocations: 40.95 kB / 477.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.494e-05/0.1224, allocations: 51.91 kB / 477.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006586/0.1231, allocations: 450.1 kB / 477.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.1231, allocations: 11.98 kB / 477.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.751e-05/0.1232, allocations: 20 kB / 477.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.1232, allocations: 12 kB / 477.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.1236, allocations: 259.6 kB / 478 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002308/0.1259, allocations: 1.711 MB / 479.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/0.1265, allocations: 415.4 kB / 480.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.1265, allocations: 8 kB / 480.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/0.1266, allocations: 46.5 kB / 480.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.923e-06/0.1266, allocations: 0 / 480.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006741/0.1273, allocations: 361.3 kB / 480.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.1274, allocations: 269 kB / 480.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.1277, allocations: 246.7 kB / 481.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.1277, allocations: 29.7 kB / 481.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1278, allocations: 248.1 kB / 481.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.128, allocations: 189.4 kB / 481.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.128, allocations: 16 kB / 481.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1281, allocations: 346.8 kB / 481.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.1283, allocations: 110 kB / 482 MB, free: 2.777 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.1287, allocations: 413.6 kB / 482.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.129, allocations: 180.8 kB / 482.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.129, allocations: 4 kB / 482.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008031/0.1298, allocations: 0.5638 MB / 483.1 MB, free: 1.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.1299, allocations: 10.34 kB / 483.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.1299, allocations: 12 kB / 483.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.1299, allocations: 16 kB / 483.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.1305, allocations: 184.3 kB / 483.3 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.253e-05/0.1305, allocations: 27.83 kB / 483.4 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.1308, allocations: 67.38 kB / 483.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.568e-05/0.1308, allocations: 31.98 kB / 483.5 MB, free: 1.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001938/0.131, allocations: 186.1 kB / 483.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.1312, allocations: 39.62 kB / 483.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.385e-05/0.1313, allocations: 41.7 kB / 483.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.1313, allocations: 4 kB / 483.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.1313, allocations: 4 kB / 483.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.1313, allocations: 11.94 kB / 483.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009712/0.1323, allocations: 413.2 kB / 484.2 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.1323, allocations: 11.92 kB / 484.2 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005568/0.1329, allocations: 119.9 kB / 484.3 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.529e-05/0.1329, allocations: 4 kB / 484.3 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.1329, allocations: 15.98 kB / 484.3 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.133, allocations: 4 kB / 484.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.133, allocations: 7.938 kB / 484.3 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009106/0.1339, allocations: 1.163 MB / 485.5 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-05/0.134, allocations: 116.6 kB / 485.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.993e-05/0.134, allocations: 19.95 kB / 485.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003855/0.1344, allocations: 4 kB / 485.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.1345, allocations: 35.91 kB / 485.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.1345, allocations: 19.98 kB / 485.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001524/0.1347, allocations: 166 kB / 485.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1347, allocations: 0 / 485.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007852/0.1355, allocations: 131.8 kB / 486 MB, free: 14.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 24 (inertia1.phi,inertia1.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,inertia7.phi,inertia7.w,inertia7a.phi,inertia7a.w,inertia6.phi,inertia6.w,inertia8.phi,inertia8.w,inertia8a.phi,inertia8a.w,inertia9.phi,inertia9.w,inertia9a.phi,inertia9a.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 (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001579/0.1371, allocations: 2.269 MB / 488.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008637/0.1379, allocations: 345.1 kB / 488.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.138, allocations: 0 / 488.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.1382, allocations: 133.3 kB / 488.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008412/0.1391, allocations: 84.67 kB / 488.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007459/0.1465, allocations: 10.48 MB / 499.3 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.147, allocations: 0.8356 MB / 0.4884 GB, free: 4 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.1472, allocations: 56.14 kB / 0.4884 GB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.1473, allocations: 139.4 kB / 0.4886 GB, free: 15.82 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1473, allocations: 3.938 kB / 0.4886 GB, free: 15.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.1666, allocations: 7.469 MB / 0.4959 GB, free: 8.531 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.1668, allocations: 198.2 kB / 0.496 GB, free: 8.289 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.11, allocations: 7.938 kB / 0.4961 GB, free: 8.281 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_InitializationConversion_Inertia_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_InitializationConversion_Inertia.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.Inertia_res.mat does not exist to compare? outputFormat=mat