Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.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.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",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.0008081/0.0008082, allocations: 91.67 kB / 17 MB, free: 6.355 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.0008019/0.000802, allocations: 185.5 kB / 17.89 MB, free: 5.926 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.394/1.394, allocations: 223.2 MB / 241.9 MB, free: 340 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.2184/0.2184, allocations: 44.22 MB / 337.2 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.000365, allocations: 8 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1262, allocations: 61.91 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004135/0.1304, allocations: 3.432 MB / 475.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.1326, allocations: 1.157 MB / 476.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004803/0.1331, allocations: 23.88 kB / 476.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.1333, allocations: 79.23 kB / 476.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004428/0.1338, allocations: 135 kB / 476.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008788/0.1347, allocations: 290.7 kB / 476.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.1359, allocations: 0.7409 MB / 477.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005568/0.1365, allocations: 220.7 kB / 477.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000507/0.137, allocations: 242.7 kB / 477.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003916/0.1374, allocations: 254.5 kB / 478.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.304e-05/0.1375, allocations: 24 kB / 478.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.727e-05/0.1375, allocations: 24 kB / 478.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.247e-05/0.1376, allocations: 95.48 kB / 478.3 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.1378, allocations: 141.3 kB / 478.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006658/0.1384, allocations: 0.5455 MB / 479 MB, free: 6.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1385, allocations: 0 / 479 MB, free: 6.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1385, allocations: 0 / 479 MB, free: 6.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.1385, allocations: 0 / 479 MB, free: 6.227 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002122/0.1406, allocations: 0.9464 MB / 480 MB, free: 5.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.1407, allocations: 12.03 kB / 480 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001595/0.1409, allocations: 94.52 kB / 480.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.1411, allocations: 86.97 kB / 480.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009478/0.142, allocations: 490.4 kB / 480.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.472e-05/0.1421, allocations: 49.27 kB / 480.7 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.1422, allocations: 56 kB / 480.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.1439, allocations: 0.6219 MB / 481.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.1439, allocations: 3.906 kB / 481.4 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.927e-05/0.144, allocations: 20 kB / 481.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.144, allocations: 20 kB / 481.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.1453, allocations: 409.9 kB / 481.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005878/0.1512, allocations: 3.025 MB / 484.8 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.1528, allocations: 472.8 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005678/0.1534, allocations: 189.6 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.1535, allocations: 7.984 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.1535, allocations: 38.56 kB / 485.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 7.544e-06/0.1535, allocations: 96 / 485.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001997/0.1556, allocations: 0.5598 MB / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.1557, allocations: 114.8 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009429/0.1566, allocations: 0.5391 MB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/0.1567, allocations: 37.7 kB / 486.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003936/0.1571, allocations: 368.1 kB / 487.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001919/0.1573, allocations: 157.8 kB / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.1574, allocations: 12 kB / 487.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002932/0.1577, allocations: 378.7 kB / 487.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000605/0.1583, allocations: 189.2 kB / 487.8 MB, free: 13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008544/0.1591, allocations: 397 kB / 488.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008448/0.16, allocations: 237 kB / 488.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.16, allocations: 0 / 488.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0019/0.1619, allocations: 0.664 MB / 489.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003737/0.1623, allocations: 286.4 kB / 489.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.1624, allocations: 8 kB / 489.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.12e-05/0.1624, allocations: 12 kB / 489.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008551/0.1633, allocations: 143.8 kB / 489.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.415e-05/0.1633, allocations: 19.94 kB / 489.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006794/0.164, allocations: 75.36 kB / 489.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.506e-05/0.1641, allocations: 32 kB / 489.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.798e-06/0.1641, allocations: 4 kB / 489.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00153/0.1657, allocations: 0.554 MB / 490.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.1657, allocations: 7.938 kB / 490.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.1657, allocations: 12 kB / 490.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007017/0.1664, allocations: 139.8 kB / 490.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.1665, allocations: 11.98 kB / 490.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005058/0.167, allocations: 71.8 kB / 490.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.652e-05/0.1671, allocations: 35.92 kB / 490.5 MB, free: 10.12 MB / 366.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.0004872/0.1676, allocations: 272.9 kB / 490.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.1677, allocations: 63.25 kB / 490.8 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001909/0.1679, allocations: 70.17 kB / 490.9 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.168, allocations: 4 kB / 490.9 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.168, allocations: 0 / 490.9 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.168, allocations: 11.98 kB / 490.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008382/0.1688, allocations: 0.575 MB / 491.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1688, allocations: 0 / 491.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004588/0.1693, allocations: 87.89 kB / 491.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.1693, allocations: 4 kB / 491.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.1694, allocations: 12 kB / 491.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1694, allocations: 0 / 491.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1694, allocations: 0 / 491.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.1707, allocations: 0.8078 MB / 492.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.1709, allocations: 172.2 kB / 492.6 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.886e-05/0.171, allocations: 15.98 kB / 492.6 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.1713, allocations: 31.98 kB / 492.6 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.1714, allocations: 31.95 kB / 492.7 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.1715, allocations: 12 kB / 492.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003966/0.1719, allocations: 367.1 kB / 493 MB, free: 7.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1719, allocations: 0 / 493 MB, free: 7.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008608/0.1727, allocations: 243.2 kB / 493.3 MB, free: 7.273 MB / 366.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.001557/0.1743, allocations: 1.369 MB / 494.6 MB, free: 5.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.1757, allocations: 0.7355 MB / 495.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1757, allocations: 1.062 kB / 495.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003684/0.176, allocations: 207.8 kB / 495.6 MB, free: 4.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.1771, allocations: 164.3 kB / 495.7 MB, free: 4.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005998/0.1831, allocations: 4.111 MB / 499.8 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004528/0.1836, allocations: 0.9145 MB / 0.489 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003546/0.184, allocations: 72.8 kB / 0.4891 GB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.1843, allocations: 251.3 kB / 0.4893 GB, free: 15.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1843, allocations: 0 / 0.4893 GB, free: 15.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02556/0.2099, allocations: 11.71 MB / 0.5008 GB, free: 3.727 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/0.2101, allocations: 167.7 kB / 0.5009 GB, free: 3.492 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.111/2.322, allocations: 0 / 0.5009 GB, free: 3.492 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat