Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001133, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001434/0.001434, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2395/0.2395, allocations: 45.92 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000255/0.0002552, allocations: 8 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1325, allocations: 63.46 MB / 481.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004317/0.1368, allocations: 3.391 MB / 484.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.1397, allocations: 1.2 MB / 486.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004724/0.1402, allocations: 23.88 kB / 486.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.1403, allocations: 55.42 kB / 486.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005671/0.1409, allocations: 175.4 kB / 486.4 MB, free: 436 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006804/0.1416, allocations: 295.2 kB / 486.6 MB, free: 144 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009039/0.1425, allocations: 0.5429 MB / 487.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005995/0.1431, allocations: 224.8 kB / 487.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005115/0.1436, allocations: 262.8 kB / 487.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.144, allocations: 258.5 kB / 487.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.786e-05/0.144, allocations: 24 kB / 487.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.1441, allocations: 28 kB / 488 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.1442, allocations: 99.47 kB / 488.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.1444, allocations: 137.3 kB / 488.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006735/0.1451, allocations: 0.5416 MB / 488.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1451, allocations: 0 / 488.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.998e-06/0.1451, allocations: 0 / 488.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.119e-05/0.1451, allocations: 0 / 488.7 MB, free: 14.02 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002188/0.1473, allocations: 0.9503 MB / 489.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.781e-05/0.1474, allocations: 8.031 kB / 489.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001545/0.1476, allocations: 98.52 kB / 489.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003382/0.1479, allocations: 103 kB / 489.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009661/0.1489, allocations: 498.4 kB / 490.4 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.149, allocations: 37.31 kB / 490.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.1491, allocations: 63.98 kB / 490.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.1504, allocations: 0.6201 MB / 491.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/0.1505, allocations: 4 kB / 491.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.1505, allocations: 20 kB / 491.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.1505, allocations: 16 kB / 491.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008818/0.1514, allocations: 394.2 kB / 491.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004215/0.1557, allocations: 3.048 MB / 494.6 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.1567, allocations: 480.4 kB / 495 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.096e-05/0.1567, allocations: 7.984 kB / 495 MB, free: 7.387 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.1568, allocations: 38.55 kB / 495.1 MB, free: 7.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.554e-06/0.1568, allocations: 0 / 495.1 MB, free: 7.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.00131/0.1581, allocations: 0.5764 MB / 495.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.1582, allocations: 132.5 kB / 495.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006188/0.1588, allocations: 0.547 MB / 496.3 MB, free: 6.039 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.1589, allocations: 33.7 kB / 496.4 MB, free: 6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.1591, allocations: 376 kB / 496.7 MB, free: 5.625 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.1593, allocations: 153.8 kB / 496.9 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-05/0.1593, allocations: 12 kB / 496.9 MB, free: 5.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1595, allocations: 374.8 kB / 497.3 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000393/0.1599, allocations: 189.2 kB / 497.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005399/0.1604, allocations: 401.9 kB / 497.8 MB, free: 4.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/0.1609, allocations: 248.5 kB / 498.1 MB, free: 4.168 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1609, allocations: 0 / 498.1 MB, free: 4.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001176/0.1621, allocations: 0.6563 MB / 498.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001137/0.1632, allocations: 2.616 MB / 0.4896 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.1633, allocations: 8 kB / 0.4896 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/0.1633, allocations: 8 kB / 0.4896 GB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005525/0.1639, allocations: 147.8 kB / 0.4898 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.1639, allocations: 12 kB / 0.4898 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/0.1643, allocations: 87.25 kB / 0.4899 GB, free: 436 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.1644, allocations: 24 kB / 0.4899 GB, free: 412 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1644, allocations: 8 kB / 0.4899 GB, free: 404 kB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009977/0.1654, allocations: 0.5504 MB / 0.4904 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1654, allocations: 8 kB / 0.4904 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1655, allocations: 8 kB / 0.4904 GB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.166, allocations: 143.8 kB / 0.4906 GB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.166, allocations: 8 kB / 0.4906 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.1664, allocations: 67.64 kB / 0.4906 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.1664, allocations: 24 kB / 0.4907 GB, free: 15.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.000429/0.1668, allocations: 291 kB / 0.4909 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.167, allocations: 63.25 kB / 0.491 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.1671, allocations: 74.11 kB / 0.4911 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1671, allocations: 4 kB / 0.4911 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.1672, allocations: 0 / 0.4911 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1672, allocations: 3.984 kB / 0.4911 GB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007902/0.168, allocations: 0.579 MB / 0.4917 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.168, allocations: 4 kB / 0.4917 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004754/0.1685, allocations: 91.89 kB / 0.4917 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.1685, allocations: 0 / 0.4917 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.1685, allocations: 15.94 kB / 0.4918 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.1685, allocations: 4 kB / 0.4918 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.1685, allocations: 3.984 kB / 0.4918 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.1698, allocations: 0.8172 MB / 0.4926 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.17, allocations: 168.4 kB / 0.4927 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.15e-05/0.1701, allocations: 12 kB / 0.4927 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.1705, allocations: 31.98 kB / 0.4928 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.565e-05/0.1706, allocations: 27.95 kB / 0.4928 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.1706, allocations: 19.98 kB / 0.4928 GB, free: 13.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004031/0.171, allocations: 371.1 kB / 0.4932 GB, free: 12.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.171, allocations: 0 / 0.4932 GB, free: 12.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000841/0.1719, allocations: 247.1 kB / 0.4934 GB, free: 12.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x) * 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 (39): * Single equations (assignments): 39 * 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.001577/0.1734, allocations: 1.444 MB / 0.4948 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.175, allocations: 0.7322 MB / 0.4955 GB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.175, allocations: 1.125 kB / 0.4955 GB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.1754, allocations: 212.8 kB / 0.4957 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008921/0.1763, allocations: 161.5 kB / 0.4959 GB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008139/0.1845, allocations: 8.478 MB / 0.5042 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005597/0.1851, allocations: 0.9224 MB / 0.5051 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000397/0.1855, allocations: 84.83 kB / 0.5051 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.1858, allocations: 239.4 kB / 0.5054 GB, free: 196 kB / 382.1 MB Notification: Performance of SimCode: time 1.253e-06/0.1858, allocations: 0 / 0.5054 GB, free: 196 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2624/0.4482, allocations: 11.79 MB / 0.5169 GB, free: 38.26 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.4484, allocations: 165 kB / 0.517 GB, free: 38.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.964/2.412, allocations: 0 / 0.517 GB, free: 38.02 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat