Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.001528/0.001528, 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.135/2.135, 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.001053/0.001053, allocations: 82.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.598e-05/3.609e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09855/0.09862, allocations: 47.58 MB / 369.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4134/0.512, allocations: 79.15 MB / 448.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.5124, allocations: 85.81 kB / 448.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02717/0.5396, allocations: 5.482 MB / 453.9 MB, free: 8.953 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5396, allocations: 4 kB / 453.9 MB, free: 8.949 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.311e-05/0.5397, allocations: 8 kB / 453.9 MB, free: 8.941 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.00142/0.5411, allocations: 0.5556 MB / 454.5 MB, free: 8.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.5412, allocations: 12.03 kB / 454.5 MB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.603e-05/0.5413, allocations: 49.86 kB / 454.6 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.5414, allocations: 27.72 kB / 454.6 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.5419, allocations: 268 kB / 454.8 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.542, allocations: 11.31 kB / 454.9 MB, free: 7.973 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/0.542, allocations: 22.56 kB / 454.9 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.5426, allocations: 189.4 kB / 455.1 MB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.5426, allocations: 0 / 455.1 MB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.5426, allocations: 7.125 kB / 455.1 MB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.5427, allocations: 4 kB / 455.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000475/0.5431, allocations: 153.3 kB / 455.2 MB, free: 7.723 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.5456, allocations: 0.8944 MB / 456.1 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006271/0.5463, allocations: 141.5 kB / 456.3 MB, free: 6.797 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/0.5466, allocations: 57.61 kB / 456.3 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.5467, allocations: 3.938 kB / 456.3 MB, free: 6.754 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003776/0.5471, allocations: 128 kB / 456.4 MB, free: 6.633 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.906e-06/0.5471, allocations: 0 / 456.4 MB, free: 6.633 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008368/0.5479, allocations: 193.8 kB / 456.6 MB, free: 6.465 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.949e-05/0.548, allocations: 83.86 kB / 456.7 MB, free: 6.367 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003823/0.5484, allocations: 215.9 kB / 456.9 MB, free: 6.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.627e-05/0.5485, allocations: 29.69 kB / 456.9 MB, free: 6.152 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.5487, allocations: 226.2 kB / 457.2 MB, free: 5.953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.709e-05/0.5488, allocations: 41.44 kB / 457.2 MB, free: 5.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.5488, allocations: 3.438 kB / 457.2 MB, free: 5.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.5489, allocations: 322.2 kB / 457.5 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.5491, allocations: 49.19 kB / 457.6 MB, free: 5.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.5494, allocations: 105.8 kB / 457.7 MB, free: 5.461 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.5497, allocations: 81.47 kB / 457.8 MB, free: 5.391 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.5497, allocations: 0 / 457.8 MB, free: 5.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008893/0.5506, allocations: 287 kB / 458 MB, free: 5.148 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000339/0.5509, allocations: 0.6455 MB / 458.7 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.551, allocations: 0 / 458.7 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.5512, allocations: 32.42 kB / 458.7 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.5517, allocations: 55.03 kB / 458.8 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005423/0.5522, allocations: 0.5513 MB / 459.3 MB, free: 3.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005196/0.5528, allocations: 50.97 kB / 459.4 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/0.5528, allocations: 11.12 kB / 459.4 MB, free: 3.762 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.5528, allocations: 0 / 459.4 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005979/0.5534, allocations: 215.4 kB / 459.6 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.5535, allocations: 0 / 459.6 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001066/0.5536, allocations: 24.73 kB / 459.6 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.554, allocations: 55.89 kB / 459.7 MB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.5554, allocations: 1.376 MB / 461 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/0.5559, allocations: 39.5 kB / 461.1 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.5559, allocations: 11.69 kB / 461.1 MB, free: 2.016 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001598/0.5561, allocations: 113.5 kB / 461.2 MB, free: 1.902 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-05/0.5562, allocations: 27.66 kB / 461.2 MB, free: 1.875 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.93e-05/0.5563, allocations: 28.77 kB / 461.3 MB, free: 1.855 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.5563, allocations: 0 / 461.3 MB, free: 1.855 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.5563, allocations: 3.938 kB / 461.3 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.5563, allocations: 0 / 461.3 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.5567, allocations: 285 kB / 461.5 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.5567, allocations: 0 / 461.5 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000358/0.5571, allocations: 39.97 kB / 461.6 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001608/0.5573, allocations: 31.8 kB / 461.6 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.5573, allocations: 4 kB / 461.6 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.559, allocations: 1.359 MB / 463 MB, free: 72 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.559, allocations: 0 / 463 MB, free: 72 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009465/0.56, allocations: 291 kB / 463.3 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.5601, allocations: 96.31 kB / 463.4 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.5602, allocations: 4.141 kB / 463.4 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.5606, allocations: 35.22 kB / 463.4 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.5607, allocations: 23.14 kB / 463.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.5607, allocations: 14.88 kB / 463.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002535/0.561, allocations: 172.8 kB / 463.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.561, allocations: 0 / 463.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007116/0.5618, allocations: 117.8 kB / 463.7 MB, free: 15.4 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * 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 (11): * Single equations (assignments): 8 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00138/0.5631, allocations: 0.8299 MB / 464.5 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.5643, allocations: 444.7 kB / 465 MB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5643, allocations: 0.8125 kB / 465 MB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.5646, allocations: 182.7 kB / 465.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.5651, allocations: 35.17 kB / 465.2 MB, free: 14.01 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.5665, allocations: 401 kB / 465.6 MB, free: 13.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004098/0.5669, allocations: 0.7482 MB / 466.3 MB, free: 12.83 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.5671, allocations: 64.98 kB / 466.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of SimCode: time 1.363e-06/0.5671, allocations: 4 kB / 466.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.61/3.177, allocations: 4.776 MB / 471.2 MB, free: 8.07 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat