Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009236/0.0009238, allocations: 99.33 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2236/0.2236, allocations: 45.91 MB / 344.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002745, allocations: 11.94 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1315, allocations: 63.46 MB / 481.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005667/0.1372, allocations: 4.977 MB / 486.6 MB, free: 272 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004405/0.1416, allocations: 2.163 MB / 488.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.1429, allocations: 39.75 kB / 488.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004828/0.1434, allocations: 158.7 kB / 489 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004721/0.1439, allocations: 150.7 kB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.1449, allocations: 299.4 kB / 489.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009924/0.1459, allocations: 0.9776 MB / 490.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005945/0.1465, allocations: 421.9 kB / 490.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000432/0.1469, allocations: 262.8 kB / 491.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000323/0.1473, allocations: 282.4 kB / 491.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.203e-05/0.1473, allocations: 32 kB / 491.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.1476, allocations: 87.97 kB / 491.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.1478, allocations: 143.3 kB / 491.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001726/0.1479, allocations: 193.2 kB / 491.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008481/0.1488, allocations: 0.9196 MB / 492.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1488, allocations: 0 / 492.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1488, allocations: 0 / 492.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.1488, allocations: 0 / 492.7 MB, free: 10.14 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001277/0.1501, allocations: 0.9784 MB / 493.7 MB, free: 9.113 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.1502, allocations: 8.031 kB / 493.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001426/0.1503, allocations: 139.7 kB / 493.8 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.1505, allocations: 118.7 kB / 493.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006892/0.1512, allocations: 0.5471 MB / 494.5 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.574e-05/0.1513, allocations: 66 kB / 494.5 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.1514, allocations: 92 kB / 494.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.1528, allocations: 0.8873 MB / 495.5 MB, free: 7.152 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.241e-05/0.1529, allocations: 7.906 kB / 495.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.1529, allocations: 40 kB / 495.6 MB, free: 7.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.153, allocations: 20 kB / 495.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000946/0.1539, allocations: 0.5268 MB / 496.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003569/0.1575, allocations: 3.654 MB / 499.8 MB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000585/0.1581, allocations: 226.8 kB / 500 MB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001877/0.1583, allocations: 105.3 kB / 0.4884 GB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002977/0.1586, allocations: 251.2 kB / 0.4886 GB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.1587, allocations: 38.56 kB / 0.4886 GB, free: 2.066 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.685e-06/0.1587, allocations: 0 / 0.4886 GB, free: 2.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002606/0.1613, allocations: 1.304 MB / 0.4899 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.1614, allocations: 63.34 kB / 0.49 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004572/0.1618, allocations: 397.8 kB / 0.4904 GB, free: 200 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.1619, allocations: 29.7 kB / 0.4904 GB, free: 164 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003366/0.1622, allocations: 462.2 kB / 0.4908 GB, free: 15.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.1623, allocations: 141.9 kB / 0.491 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/0.1623, allocations: 16 kB / 0.491 GB, free: 15.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1625, allocations: 354.8 kB / 0.4913 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.1627, allocations: 117.1 kB / 0.4914 GB, free: 15.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003191/0.163, allocations: 306.2 kB / 0.4917 GB, free: 14.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.1633, allocations: 160.8 kB / 0.4919 GB, free: 14.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1633, allocations: 4 kB / 0.4919 GB, free: 14.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007879/0.1641, allocations: 0.5092 MB / 0.4924 GB, free: 14.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.1641, allocations: 8 kB / 0.4924 GB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.1642, allocations: 8 kB / 0.4924 GB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002562/0.1644, allocations: 56.7 kB / 0.4924 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/0.1648, allocations: 123.8 kB / 0.4926 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003906/0.1652, allocations: 0.5526 MB / 0.4931 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.1654, allocations: 23.98 kB / 0.4931 GB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.113e-05/0.1655, allocations: 24 kB / 0.4932 GB, free: 13.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003261/0.1658, allocations: 229.6 kB / 0.4934 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.265e-05/0.1659, allocations: 51.39 kB / 0.4934 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005779/0.1665, allocations: 335 kB / 0.4937 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1665, allocations: 4 kB / 0.4937 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1665, allocations: 0 / 0.4937 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1665, allocations: 3.984 kB / 0.4937 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.1678, allocations: 1.054 MB / 0.4948 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1679, allocations: 0 / 0.4948 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.1682, allocations: 83.89 kB / 0.4949 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000135/0.1683, allocations: 33 kB / 0.4949 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.1684, allocations: 16 kB / 0.4949 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003216/0.1687, allocations: 0.5484 MB / 0.4954 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1687, allocations: 0 / 0.4954 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007443/0.1695, allocations: 0.5714 MB / 0.496 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.881e-05/0.1696, allocations: 116.5 kB / 0.4961 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.953e-05/0.1696, allocations: 8 kB / 0.4961 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.1698, allocations: 19.98 kB / 0.4961 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.723e-05/0.1699, allocations: 19.97 kB / 0.4962 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.1699, allocations: 16 kB / 0.4962 GB, free: 9.918 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00027/0.1702, allocations: 267.1 kB / 0.4964 GB, free: 9.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1702, allocations: 0 / 0.4964 GB, free: 9.656 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005506/0.1707, allocations: 124 kB / 0.4965 GB, free: 9.535 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001109/0.1718, allocations: 1.116 MB / 0.4976 GB, free: 8.371 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.1725, allocations: 337.4 kB / 0.498 GB, free: 8.043 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1725, allocations: 0 / 0.498 GB, free: 8.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.1728, allocations: 141.1 kB / 0.4981 GB, free: 7.906 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.1733, allocations: 70.44 kB / 0.4982 GB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00624/0.1795, allocations: 3.791 MB / 0.5019 GB, free: 3.898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007095/0.1803, allocations: 0.96 MB / 0.5028 GB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002988/0.1806, allocations: 60.48 kB / 0.5029 GB, free: 2.844 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004628/0.1811, allocations: 295.7 kB / 0.5031 GB, free: 2.559 MB / 382.1 MB Notification: Performance of SimCode: time 1.342e-06/0.1811, allocations: 0 / 0.5031 GB, free: 2.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2876/0.4687, allocations: 9.319 MB / 0.5122 GB, free: 38.89 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.4689, allocations: 206.8 kB / 0.5124 GB, free: 38.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.463, allocations: 0.6562 kB / 0.5124 GB, free: 38.65 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat