Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",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.0009411/0.0009411, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.0009551/0.000955, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.577/1.577, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.000304, allocations: 6.844 kB / 300.8 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1426, allocations: 50.43 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003352/0.146, allocations: 2.245 MB / 353.5 MB, free: 9.332 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.1473, allocations: 0.6432 MB / 354.1 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.1475, allocations: 4 kB / 354.1 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.651e-05/0.1476, allocations: 35.69 kB / 354.2 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.1478, allocations: 95.72 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.1481, allocations: 63.92 kB / 354.3 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003358/0.1484, allocations: 243.4 kB / 354.6 MB, free: 8.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.1486, allocations: 90.33 kB / 354.6 MB, free: 8.156 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.1488, allocations: 123.5 kB / 354.8 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.149, allocations: 143.4 kB / 354.9 MB, free: 7.895 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.149, allocations: 16 kB / 354.9 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.387e-05/0.1491, allocations: 16 kB / 354.9 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.1492, allocations: 59.75 kB / 355 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.842e-05/0.1492, allocations: 77.58 kB / 355.1 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.1495, allocations: 271.2 kB / 355.3 MB, free: 7.457 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1495, allocations: 0 / 355.3 MB, free: 7.457 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.1496, allocations: 7.922 kB / 355.3 MB, free: 7.449 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1496, allocations: 0 / 355.3 MB, free: 7.449 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001286/0.1509, allocations: 0.6145 MB / 356 MB, free: 6.777 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.1509, allocations: 16.03 kB / 356 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.407e-05/0.151, allocations: 62.53 kB / 356 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.585e-05/0.1511, allocations: 35.58 kB / 356.1 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003717/0.1515, allocations: 271.4 kB / 356.3 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.1515, allocations: 16.56 kB / 356.3 MB, free: 6.332 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/0.1516, allocations: 24 kB / 356.4 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007264/0.1523, allocations: 307.4 kB / 356.7 MB, free: 6 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1523, allocations: 0 / 356.7 MB, free: 6 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.1524, allocations: 15.98 kB / 356.7 MB, free: 5.984 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1524, allocations: 11.95 kB / 356.7 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008022/0.1532, allocations: 277.5 kB / 357 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.155, allocations: 1.109 MB / 358.1 MB, free: 4.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000852/0.1559, allocations: 242.6 kB / 358.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.1559, allocations: 7.891 kB / 358.3 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005074/0.1564, allocations: 182 kB / 358.5 MB, free: 4.047 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.1564, allocations: 0 / 358.5 MB, free: 4.047 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.002065/0.1585, allocations: 0.5341 MB / 359 MB, free: 3.484 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.1586, allocations: 110.8 kB / 359.1 MB, free: 3.352 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003417/0.1589, allocations: 286.6 kB / 359.4 MB, free: 3.066 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.159, allocations: 29.7 kB / 359.5 MB, free: 3.031 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.1591, allocations: 191.6 kB / 359.6 MB, free: 2.836 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.064e-05/0.1592, allocations: 43.45 kB / 359.7 MB, free: 2.793 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/0.1592, allocations: 8 kB / 359.7 MB, free: 2.785 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1594, allocations: 334.8 kB / 360 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.1597, allocations: 104.2 kB / 360.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.1601, allocations: 214.1 kB / 360.3 MB, free: 2.086 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000376/0.1605, allocations: 151.9 kB / 360.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1605, allocations: 0 / 360.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00122/0.1618, allocations: 451.6 kB / 360.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/0.1618, allocations: 29.7 kB / 360.9 MB, free: 1.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.1618, allocations: 4 kB / 360.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003585/0.1622, allocations: 76.89 kB / 361 MB, free: 1.359 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.1624, allocations: 51.91 kB / 361.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/0.1648, allocations: 1.625 MB / 362.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.1652, allocations: 63.64 kB / 362.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.1653, allocations: 8 kB / 362.8 MB, free: 15.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001847/0.1655, allocations: 149.7 kB / 362.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.1655, allocations: 23.72 kB / 362.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.872e-05/0.1656, allocations: 29.7 kB / 363 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1656, allocations: 0 / 363 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.1656, allocations: 0 / 363 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1656, allocations: 0 / 363 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003082/0.1659, allocations: 301.4 kB / 363.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1659, allocations: 7.953 kB / 363.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.1661, allocations: 27.97 kB / 363.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002549/0.1663, allocations: 60.81 kB / 363.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.1664, allocations: 4 kB / 363.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/0.1686, allocations: 1.601 MB / 365 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1686, allocations: 0 / 365 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.1696, allocations: 337.9 kB / 365.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.1698, allocations: 112.7 kB / 365.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.181e-05/0.1698, allocations: 8 kB / 365.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.17, allocations: 27.97 kB / 365.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-05/0.1702, allocations: 39.91 kB / 365.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.1702, allocations: 0 / 365.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002074/0.1704, allocations: 202 kB / 365.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1704, allocations: 0 / 365.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004175/0.1708, allocations: 79.84 kB / 365.7 MB, free: 12.27 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001397/0.1722, allocations: 0.8744 MB / 366.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.1733, allocations: 429.9 kB / 367 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1733, allocations: 4 kB / 367 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000455/0.1737, allocations: 235.2 kB / 367.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.174, allocations: 43.33 kB / 367.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004654/0.1787, allocations: 3.651 MB / 371 MB, free: 6.863 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.1792, allocations: 0.7599 MB / 371.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.1793, allocations: 22.3 kB / 371.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.1795, allocations: 75.41 kB / 371.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of SimCode: time 1.413e-06/0.1795, allocations: 0 / 371.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.2016, allocations: 5.984 MB / 377.8 MB, free: 196 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003348/0.202, allocations: 212.5 kB / 378 MB, free: 15.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.167, allocations: 0 / 378 MB, free: 15.95 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat