Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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) 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(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",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.00102/0.00102, allocations: 94.89 kB / 16.3 MB, free: 5.996 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.001133/0.001133, allocations: 183.7 kB / 17.2 MB, free: 5.914 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.458/1.458, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003285, allocations: 6.469 kB / 300.8 MB, free: 6.312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1448, allocations: 50.42 MB / 351.2 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003314/0.1482, allocations: 2.39 MB / 353.6 MB, free: 9.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.1495, allocations: 0.6822 MB / 354.3 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.1497, allocations: 8 kB / 354.3 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.409e-05/0.1498, allocations: 43.67 kB / 354.4 MB, free: 8.609 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002459/0.15, allocations: 123.6 kB / 354.5 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.1504, allocations: 71.91 kB / 354.5 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.1507, allocations: 275.4 kB / 354.8 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.1509, allocations: 77.69 kB / 354.9 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.1511, allocations: 127.6 kB / 355 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.1513, allocations: 147.3 kB / 355.2 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.1514, allocations: 20 kB / 355.2 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.386e-05/0.1514, allocations: 16 kB / 355.2 MB, free: 7.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.1515, allocations: 51.77 kB / 355.2 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.75e-05/0.1515, allocations: 85.58 kB / 355.3 MB, free: 7.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.1518, allocations: 267.2 kB / 355.6 MB, free: 7.363 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1518, allocations: 3.938 kB / 355.6 MB, free: 7.359 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1518, allocations: 0 / 355.6 MB, free: 7.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1518, allocations: 0 / 355.6 MB, free: 7.359 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009724/0.1528, allocations: 0.6001 MB / 356.2 MB, free: 6.711 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.346e-05/0.1529, allocations: 16.02 kB / 356.2 MB, free: 6.695 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.268e-05/0.153, allocations: 62.55 kB / 356.3 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.53e-05/0.1531, allocations: 39.58 kB / 356.3 MB, free: 6.586 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.1535, allocations: 270.4 kB / 356.6 MB, free: 6.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.1535, allocations: 16.56 kB / 356.6 MB, free: 6.266 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.1536, allocations: 35.94 kB / 356.6 MB, free: 6.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.1542, allocations: 252.9 kB / 356.9 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1542, allocations: 0 / 356.9 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.1542, allocations: 12 kB / 356.9 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.1542, allocations: 7.953 kB / 356.9 MB, free: 5.961 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005106/0.1548, allocations: 230.1 kB / 357.1 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.1566, allocations: 0.9953 MB / 358.1 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005382/0.1571, allocations: 305.1 kB / 358.4 MB, free: 4.348 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.1572, allocations: 192 / 358.4 MB, free: 4.348 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/0.1572, allocations: 38.75 kB / 358.4 MB, free: 4.301 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.222e-06/0.1572, allocations: 0 / 358.4 MB, free: 4.301 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001346/0.1586, allocations: 0.587 MB / 359 MB, free: 3.668 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.1586, allocations: 51.41 kB / 359.1 MB, free: 3.605 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002914/0.1589, allocations: 258.6 kB / 359.3 MB, free: 3.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.159, allocations: 33.7 kB / 359.4 MB, free: 3.301 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.1591, allocations: 183.8 kB / 359.5 MB, free: 3.113 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.947e-05/0.1592, allocations: 74.98 kB / 359.6 MB, free: 3.039 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.225e-05/0.1592, allocations: 8 kB / 359.6 MB, free: 3.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1593, allocations: 330.8 kB / 359.9 MB, free: 2.699 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.1596, allocations: 84.42 kB / 360 MB, free: 2.613 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.1598, allocations: 119.4 kB / 360.1 MB, free: 2.488 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.16, allocations: 91.97 kB / 360.2 MB, free: 2.398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1601, allocations: 4 kB / 360.2 MB, free: 2.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006461/0.1607, allocations: 326.8 kB / 360.6 MB, free: 2.062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1607, allocations: 8 kB / 360.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1607, allocations: 0 / 360.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002834/0.161, allocations: 77.66 kB / 360.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.1612, allocations: 43.92 kB / 360.7 MB, free: 1.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/0.1638, allocations: 2.862 MB / 363.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.164, allocations: 27.72 kB / 363.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.164, allocations: 12 kB / 363.6 MB, free: 14.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (20): * Single equations (assignments): 18 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.1642, allocations: 141.8 kB / 363.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.921e-05/0.1642, allocations: 23.72 kB / 363.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.362e-05/0.1643, allocations: 34.23 kB / 363.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1643, allocations: 11.89 kB / 363.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.1643, allocations: 4 kB / 363.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1643, allocations: 4 kB / 363.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.1654, allocations: 0.6892 MB / 364.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1654, allocations: 0 / 364.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.1656, allocations: 39.88 kB / 364.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002137/0.1658, allocations: 73.67 kB / 364.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.1658, allocations: 4 kB / 364.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002407/0.1682, allocations: 2.851 MB / 367.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1683, allocations: 0 / 367.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007648/0.169, allocations: 387.4 kB / 367.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.1692, allocations: 112.7 kB / 367.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.1692, allocations: 0 / 367.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002765/0.1695, allocations: 39.97 kB / 368 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.1696, allocations: 19.92 kB / 368 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.1696, allocations: 15.98 kB / 368 MB, free: 9.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.1699, allocations: 186 kB / 368.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1699, allocations: 0 / 368.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004993/0.1704, allocations: 95.75 kB / 368.3 MB, free: 9.68 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001163/0.1715, allocations: 0.9289 MB / 369.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1726, allocations: 465.2 kB / 369.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1726, allocations: 0 / 369.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005079/0.1731, allocations: 354.2 kB / 370 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.1735, allocations: 48.53 kB / 370.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.1764, allocations: 1.868 MB / 371.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.1768, allocations: 0.7794 MB / 372.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001248/0.1769, allocations: 18.3 kB / 372.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.1771, allocations: 87.41 kB / 372.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of SimCode: time 1.383e-06/0.1771, allocations: 0 / 372.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.1982, allocations: 5.667 MB / 378.5 MB, free: 15.5 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.1984, allocations: 211 kB / 378.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.076, allocations: 0 / 378.7 MB, free: 15.25 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat does not exist to compare? outputFormat=mat