Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_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.0009673/0.0009672, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 175.8 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.4 MB / 222.7 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3401/0.3401, allocations: 43.55 MB / 314.6 MB, free: 8.996 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000564/0.0005641, allocations: 15.94 kB / 384 MB, free: 8.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1409, allocations: 58.86 MB / 442.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004449/0.1454, allocations: 3.425 MB / 446.3 MB, free: 9.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.1477, allocations: 1.209 MB / 447.5 MB, free: 8.516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003292/0.1481, allocations: 23.88 kB / 447.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.1484, allocations: 79.17 kB / 447.6 MB, free: 8.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004614/0.1488, allocations: 139 kB / 447.7 MB, free: 8.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006214/0.1495, allocations: 295.5 kB / 448 MB, free: 7.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007582/0.1502, allocations: 0.737 MB / 448.8 MB, free: 7.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.1506, allocations: 228.8 kB / 449 MB, free: 7.016 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.1509, allocations: 242.7 kB / 449.2 MB, free: 6.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.1512, allocations: 258.4 kB / 449.5 MB, free: 6.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.529e-05/0.1513, allocations: 24 kB / 449.5 MB, free: 6.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.709e-05/0.1514, allocations: 24 kB / 449.5 MB, free: 6.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.926e-05/0.1515, allocations: 99.42 kB / 449.6 MB, free: 6.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.1516, allocations: 141.3 kB / 449.8 MB, free: 6.234 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004945/0.1521, allocations: 0.5493 MB / 450.3 MB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.1521, allocations: 0 / 450.3 MB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1521, allocations: 0 / 450.3 MB, free: 5.684 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1521, allocations: 0 / 450.3 MB, free: 5.684 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001489/0.1536, allocations: 0.9618 MB / 451.3 MB, free: 4.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1537, allocations: 8.031 kB / 451.3 MB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.1538, allocations: 90.52 kB / 451.4 MB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.1539, allocations: 86.97 kB / 451.5 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006651/0.1546, allocations: 490.5 kB / 451.9 MB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.829e-05/0.1546, allocations: 41.31 kB / 452 MB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-05/0.1547, allocations: 63.89 kB / 452 MB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.1557, allocations: 0.6115 MB / 452.7 MB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.1558, allocations: 7.953 kB / 452.7 MB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.1559, allocations: 24 kB / 452.7 MB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.1559, allocations: 16 kB / 452.7 MB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007524/0.1566, allocations: 394.2 kB / 453.1 MB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2523/0.409, allocations: 3.029 MB / 456.1 MB, free: 44.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000902/0.4099, allocations: 472.5 kB / 456.6 MB, free: 44.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002935/0.4102, allocations: 182.3 kB / 456.8 MB, free: 44.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.671e-05/0.4103, allocations: 5.25 kB / 456.8 MB, free: 44.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.4103, allocations: 36.28 kB / 456.8 MB, free: 44.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.304e-06/0.4103, allocations: 0 / 456.8 MB, free: 44.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001089/0.4114, allocations: 0.565 MB / 457.4 MB, free: 44.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.4114, allocations: 117.3 kB / 457.5 MB, free: 44.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004665/0.4119, allocations: 0.5413 MB / 458 MB, free: 44.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.412, allocations: 38.42 kB / 458.1 MB, free: 44.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.4121, allocations: 372.6 kB / 458.4 MB, free: 43.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.4122, allocations: 152.5 kB / 458.6 MB, free: 43.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.243e-05/0.4123, allocations: 16.5 kB / 458.6 MB, free: 43.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.195e-05/0.4124, allocations: 378.9 kB / 459 MB, free: 43.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.4127, allocations: 183.2 kB / 459.1 MB, free: 43.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004076/0.4131, allocations: 399.9 kB / 459.5 MB, free: 43.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004222/0.4135, allocations: 233.4 kB / 459.7 MB, free: 43.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4135, allocations: 4.656 kB / 459.8 MB, free: 43.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.000995/0.4145, allocations: 0.6643 MB / 460.4 MB, free: 43.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.4147, allocations: 296.6 kB / 460.7 MB, free: 42.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.4147, allocations: 5.469 kB / 460.7 MB, free: 42.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.4147, allocations: 10.47 kB / 460.7 MB, free: 42.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004757/0.4152, allocations: 150.3 kB / 460.9 MB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.4152, allocations: 17.22 kB / 460.9 MB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.4155, allocations: 73.52 kB / 461 MB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.547e-05/0.4156, allocations: 29 kB / 461 MB, free: 42.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.13e-06/0.4156, allocations: 2.906 kB / 461 MB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008431/0.4164, allocations: 0.5483 MB / 461.5 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.4165, allocations: 10.66 kB / 461.5 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.4165, allocations: 12.92 kB / 461.6 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.4169, allocations: 136 kB / 461.7 MB, free: 42.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.4169, allocations: 16.3 kB / 461.7 MB, free: 42.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.4172, allocations: 56.86 kB / 461.8 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.4172, allocations: 33.66 kB / 461.8 MB, free: 42.75 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.0002134/0.4174, allocations: 282.2 kB / 462.1 MB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.244e-05/0.4175, allocations: 68.25 kB / 462.1 MB, free: 42.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.4177, allocations: 71.05 kB / 462.2 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.4177, allocations: 2.938 kB / 462.2 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.4177, allocations: 6.328 kB / 462.2 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.4177, allocations: 4.062 kB / 462.2 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.4184, allocations: 0.5802 MB / 462.8 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4184, allocations: 0 / 462.8 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004311/0.4189, allocations: 93.73 kB / 462.9 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4189, allocations: 2.875 kB / 462.9 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.4189, allocations: 12.56 kB / 462.9 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.4189, allocations: 3.125 kB / 462.9 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4189, allocations: 0.6875 kB / 462.9 MB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.4201, allocations: 0.8045 MB / 463.7 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.4203, allocations: 170.3 kB / 463.9 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/0.4204, allocations: 16.58 kB / 463.9 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.4207, allocations: 30.39 kB / 463.9 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.84e-05/0.4208, allocations: 30.94 kB / 464 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.4208, allocations: 9.531 kB / 464 MB, free: 41.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003498/0.4211, allocations: 374.1 kB / 464.3 MB, free: 41.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4211, allocations: 4 kB / 464.3 MB, free: 41.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007063/0.4219, allocations: 240.9 kB / 464.6 MB, free: 41.74 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.001212/0.4231, allocations: 1.367 MB / 465.9 MB, free: 40.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.4243, allocations: 0.7451 MB / 466.7 MB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4244, allocations: 0 / 466.7 MB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003117/0.4247, allocations: 208.4 kB / 466.9 MB, free: 40.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009129/0.4256, allocations: 162.3 kB / 467 MB, free: 40.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005639/0.4312, allocations: 4.137 MB / 471.2 MB, free: 38.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003883/0.4317, allocations: 0.9124 MB / 472.1 MB, free: 38.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003746/0.432, allocations: 77.94 kB / 472.2 MB, free: 38.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003005/0.4323, allocations: 241.8 kB / 472.4 MB, free: 37.86 MB / 382.1 MB Notification: Performance of SimCode: time 1.482e-06/0.4324, allocations: 3.438 kB / 472.4 MB, free: 37.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.4583, allocations: 11.77 MB / 484.2 MB, free: 36.95 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/0.4585, allocations: 165.5 kB / 484.4 MB, free: 36.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/2.511, allocations: 0 / 484.4 MB, free: 36.71 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat