Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp",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.002275/0.002275, allocations: 182.2 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.308/2.308, 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.001102/0.001102, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.657e-05/3.676e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5059/0.6198, allocations: 78.24 MB / 447.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004179/0.6202, allocations: 75.7 kB / 447.5 MB, free: 14.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04486/0.6651, allocations: 5.75 MB / 453.3 MB, free: 9.977 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.6652, allocations: 0 / 453.3 MB, free: 9.977 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.914e-05/0.6653, allocations: 4 kB / 453.3 MB, free: 9.973 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.002355/0.6676, allocations: 0.5756 MB / 453.8 MB, free: 9.367 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.189e-05/0.6677, allocations: 12.03 kB / 453.8 MB, free: 9.355 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001756/0.6679, allocations: 56.11 kB / 453.9 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.6681, allocations: 31.62 kB / 453.9 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007425/0.6689, allocations: 273.4 kB / 454.2 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.669, allocations: 22.06 kB / 454.2 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.6691, allocations: 26.48 kB / 454.2 MB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.6702, allocations: 257.9 kB / 454.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.6702, allocations: 0 / 454.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.355e-05/0.6703, allocations: 9.625 kB / 454.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.6704, allocations: 8 kB / 454.5 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008387/0.6712, allocations: 172.4 kB / 454.7 MB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/0.6755, allocations: 1.106 MB / 455.8 MB, free: 7.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008499/0.6764, allocations: 140.4 kB / 455.9 MB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.6768, allocations: 63.77 kB / 456 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.34e-05/0.6768, allocations: 224 / 456 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004768/0.6773, allocations: 133.1 kB / 456.1 MB, free: 7.352 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 3.587e-06/0.6774, allocations: 0 / 456.1 MB, free: 7.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.001492/0.6789, allocations: 200.7 kB / 456.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.679, allocations: 106.8 kB / 456.4 MB, free: 7.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006877/0.6797, allocations: 256.7 kB / 456.7 MB, free: 6.844 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.401e-05/0.6798, allocations: 25.7 kB / 456.7 MB, free: 6.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.6801, allocations: 252.3 kB / 456.9 MB, free: 6.586 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.408e-05/0.6802, allocations: 43.02 kB / 457 MB, free: 6.551 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.943e-05/0.6803, allocations: 3.75 kB / 457 MB, free: 6.551 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.6805, allocations: 325.9 kB / 457.3 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.6808, allocations: 54.8 kB / 457.4 MB, free: 6.191 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.6813, allocations: 168.8 kB / 457.5 MB, free: 6.008 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003901/0.6817, allocations: 105.8 kB / 457.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.6817, allocations: 0 / 457.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001913/0.6837, allocations: 326.2 kB / 457.9 MB, free: 5.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.901e-05/0.6838, allocations: 37.69 kB / 458 MB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.6838, allocations: 7.938 kB / 458 MB, free: 5.594 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004863/0.6843, allocations: 55.75 kB / 458 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006317/0.685, allocations: 59.77 kB / 458.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003749/0.6887, allocations: 1.512 MB / 459.6 MB, free: 3.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.6898, allocations: 59.59 kB / 459.7 MB, free: 3.918 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.85e-05/0.6899, allocations: 15.94 kB / 459.7 MB, free: 3.906 MB / 330.7 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 () * 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.0002633/0.6902, allocations: 124.8 kB / 459.8 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.6904, allocations: 23.72 kB / 459.8 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.6905, allocations: 29.7 kB / 459.9 MB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.6905, allocations: 0 / 459.9 MB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.6906, allocations: 3.953 kB / 459.9 MB, free: 3.734 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.6906, allocations: 4 kB / 459.9 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000646/0.6912, allocations: 306.6 kB / 460.2 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.6913, allocations: 0 / 460.2 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003856/0.6917, allocations: 23.92 kB / 460.2 MB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004084/0.6921, allocations: 60.02 kB / 460.2 MB, free: 3.359 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.6922, allocations: 0 / 460.2 MB, free: 3.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003427/0.6956, allocations: 1.499 MB / 461.7 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.6957, allocations: 3.953 kB / 461.8 MB, free: 1.855 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.6972, allocations: 232.7 kB / 462 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.6975, allocations: 116.7 kB / 462.1 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.887e-05/0.6976, allocations: 8 kB / 462.1 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007653/0.6984, allocations: 31.97 kB / 462.1 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.6987, allocations: 27.95 kB / 462.2 MB, free: 1.426 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.6987, allocations: 4 kB / 462.2 MB, free: 1.422 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005252/0.6993, allocations: 195.1 kB / 462.4 MB, free: 1.234 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.102e-06/0.6993, allocations: 0 / 462.4 MB, free: 1.234 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000859/0.7002, allocations: 79.84 kB / 462.4 MB, free: 1.156 MB / 330.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 (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.002005/0.7022, allocations: 0.7707 MB / 463.2 MB, free: 360 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.7036, allocations: 346.2 kB / 463.5 MB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.7036, allocations: 0 / 463.5 MB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000562/0.7042, allocations: 182.4 kB / 463.7 MB, free: 15.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006279/0.7049, allocations: 41.27 kB / 463.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.7069, allocations: 371.2 kB / 464.1 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000563/0.7075, allocations: 0.7599 MB / 464.9 MB, free: 14.56 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.7078, allocations: 71.42 kB / 464.9 MB, free: 14.49 MB / 346.7 MB Notification: Performance of SimCode: time 2.134e-06/0.7079, allocations: 0 / 464.9 MB, free: 14.49 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.709/3.417, allocations: 5.382 MB / 470.3 MB, free: 9.105 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat