Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002235/0.00224, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001108, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.716e-05/4.732e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 47.57 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5276, allocations: 79.03 MB / 448.2 MB, free: 13.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.528, allocations: 82.44 kB / 448.3 MB, free: 13.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02664/0.5546, allocations: 5.674 MB / 454 MB, free: 8.887 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5547, allocations: 0 / 454 MB, free: 8.887 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.324e-05/0.5547, allocations: 8 kB / 454 MB, free: 8.879 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001415/0.5561, allocations: 0.5739 MB / 454.6 MB, free: 8.273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.5562, allocations: 8.031 kB / 454.6 MB, free: 8.266 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.645e-05/0.5563, allocations: 57.03 kB / 454.6 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.307e-05/0.5564, allocations: 23.72 kB / 454.6 MB, free: 8.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004726/0.5569, allocations: 267.8 kB / 454.9 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.5569, allocations: 18.7 kB / 454.9 MB, free: 7.898 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.076e-05/0.557, allocations: 18.62 kB / 454.9 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005648/0.5576, allocations: 197.2 kB / 455.1 MB, free: 7.746 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.5576, allocations: 3.984 kB / 455.1 MB, free: 7.742 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.5577, allocations: 10.56 kB / 455.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.5577, allocations: 8 kB / 455.2 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000495/0.5582, allocations: 160.9 kB / 455.3 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.5607, allocations: 0.9297 MB / 456.2 MB, free: 6.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005518/0.5613, allocations: 149.6 kB / 456.4 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.5615, allocations: 60.48 kB / 456.5 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.181e-05/0.5616, allocations: 0 / 456.5 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.5619, allocations: 137.8 kB / 456.6 MB, free: 6.504 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.074e-06/0.5619, allocations: 3.938 kB / 456.6 MB, free: 6.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008424/0.5628, allocations: 226.1 kB / 456.8 MB, free: 6.309 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.947e-05/0.5629, allocations: 106.1 kB / 456.9 MB, free: 6.184 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003774/0.5633, allocations: 236.8 kB / 457.1 MB, free: 5.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/0.5634, allocations: 29.02 kB / 457.2 MB, free: 5.949 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.5635, allocations: 238 kB / 457.4 MB, free: 5.738 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.416e-05/0.5636, allocations: 45.75 kB / 457.5 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-05/0.5636, allocations: 6.875 kB / 457.5 MB, free: 5.695 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.5638, allocations: 325.3 kB / 457.8 MB, free: 5.375 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.564, allocations: 55.11 kB / 457.8 MB, free: 5.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.5642, allocations: 124.6 kB / 457.9 MB, free: 5.215 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.5645, allocations: 91.83 kB / 458 MB, free: 5.137 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5645, allocations: 4 kB / 458 MB, free: 5.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009362/0.5654, allocations: 317.9 kB / 458.4 MB, free: 4.867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004328/0.5659, allocations: 0.8135 MB / 459.2 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.5659, allocations: 7.984 kB / 459.2 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003298/0.5662, allocations: 52.09 kB / 459.2 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.5666, allocations: 47.58 kB / 459.3 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009464/0.5676, allocations: 0.6391 MB / 459.9 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000566/0.5682, allocations: 55.53 kB / 460 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.5682, allocations: 15.67 kB / 460 MB, free: 3.207 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.5683, allocations: 4 kB / 460 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006713/0.5689, allocations: 251.1 kB / 460.2 MB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.569, allocations: 0 / 460.2 MB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.5691, allocations: 40.16 kB / 460.3 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.5695, allocations: 47.59 kB / 460.3 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.5714, allocations: 1.536 MB / 461.9 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004595/0.5719, allocations: 47.81 kB / 461.9 MB, free: 1.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.807e-05/0.5719, allocations: 8 kB / 461.9 MB, free: 1.328 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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.0001677/0.5721, allocations: 131 kB / 462 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.227e-05/0.5722, allocations: 23.72 kB / 462.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.115e-05/0.5723, allocations: 26.64 kB / 462.1 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.5723, allocations: 7.938 kB / 462.1 MB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.5723, allocations: 0 / 462.1 MB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.5723, allocations: 4 kB / 462.1 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004052/0.5728, allocations: 293.9 kB / 462.4 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.5728, allocations: 0 / 462.4 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002575/0.573, allocations: 27.36 kB / 462.4 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002301/0.5733, allocations: 47.08 kB / 462.5 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.5733, allocations: 8 kB / 462.5 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.5756, allocations: 1.604 MB / 464.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5757, allocations: 0 / 464.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008092/0.5765, allocations: 263 kB / 464.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.5766, allocations: 96.88 kB / 464.4 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.999e-05/0.5767, allocations: 7.172 kB / 464.4 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/0.5772, allocations: 47.03 kB / 464.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.5773, allocations: 19.22 kB / 464.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.5773, allocations: 0 / 464.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003312/0.5777, allocations: 190 kB / 464.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5777, allocations: 0 / 464.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007686/0.5785, allocations: 128.4 kB / 464.8 MB, free: 14.5 MB / 346.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * 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.001218/0.5797, allocations: 0.7849 MB / 465.6 MB, free: 13.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.5812, allocations: 0.5318 MB / 466.1 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5813, allocations: 1 kB / 466.1 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004634/0.5817, allocations: 194.6 kB / 466.3 MB, free: 13.01 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.5822, allocations: 44.52 kB / 466.4 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.5857, allocations: 0.7186 MB / 467.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.5862, allocations: 0.7563 MB / 467.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.5864, allocations: 71.42 kB / 467.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5864, allocations: 0 / 467.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.747/3.334, allocations: 5.023 MB / 472.9 MB, free: 6.332 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp_res.mat does not exist to compare? outputFormat=mat