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.001545/0.001545, allocations: 188.4 kB / 16.41 MB, free: 5.723 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/2, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001115/0.001115, allocations: 88.42 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003875, allocations: 11.98 kB / 327.1 MB, free: 76 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3313, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.4548, allocations: 79.13 MB / 453.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.4551, allocations: 79.95 kB / 453.9 MB, free: 1.422 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02583/0.481, allocations: 5.683 MB / 459.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.481, allocations: 0 / 459.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.083e-05/0.481, allocations: 4 kB / 459.5 MB, free: 11.71 MB / 346.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.001581/0.4826, allocations: 0.6067 MB / 460.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.4827, allocations: 12.03 kB / 460.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.161e-05/0.4828, allocations: 50.55 kB / 460.2 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.011e-05/0.4829, allocations: 31.62 kB / 460.2 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.4834, allocations: 275.3 kB / 460.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.4834, allocations: 20.39 kB / 460.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.4835, allocations: 20 kB / 460.5 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.4845, allocations: 259.2 kB / 460.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.4845, allocations: 7.938 kB / 460.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.069e-05/0.4846, allocations: 8 kB / 460.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.4846, allocations: 4 kB / 460.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.486, allocations: 293.5 kB / 461.1 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.4886, allocations: 0.9245 MB / 462 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.49, allocations: 274.5 kB / 462.3 MB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.4901, allocations: 4 kB / 462.3 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007523/0.4909, allocations: 193.7 kB / 462.5 MB, free: 8.543 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 4.859e-06/0.4909, allocations: 4 kB / 462.5 MB, free: 8.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.003495/0.4944, allocations: 0.6584 MB / 463.2 MB, free: 7.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.973e-05/0.4945, allocations: 102.8 kB / 463.3 MB, free: 7.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004225/0.495, allocations: 241.7 kB / 463.5 MB, free: 7.492 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.495, allocations: 29.7 kB / 463.5 MB, free: 7.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.4952, allocations: 230.2 kB / 463.7 MB, free: 7.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.269e-05/0.4953, allocations: 47.44 kB / 463.8 MB, free: 7.184 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.51e-05/0.4953, allocations: 4 kB / 463.8 MB, free: 7.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4955, allocations: 326.8 kB / 464.1 MB, free: 6.852 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005902/0.4961, allocations: 107.9 kB / 464.2 MB, free: 6.746 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006336/0.4967, allocations: 183.1 kB / 464.4 MB, free: 6.535 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006166/0.4974, allocations: 149.5 kB / 464.5 MB, free: 6.383 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.4974, allocations: 4 kB / 464.5 MB, free: 6.379 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001799/0.4992, allocations: 431.9 kB / 465 MB, free: 5.941 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003655/0.4996, allocations: 0.816 MB / 465.8 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.4996, allocations: 15.97 kB / 465.8 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004989/0.5001, allocations: 72.81 kB / 465.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.5005, allocations: 47.91 kB / 465.9 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.5017, allocations: 0.6733 MB / 466.6 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005771/0.5023, allocations: 59.81 kB / 466.6 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.5023, allocations: 15.92 kB / 466.7 MB, free: 4.148 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.5023, allocations: 4 kB / 466.7 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001295/0.5036, allocations: 335.3 kB / 467 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.5037, allocations: 4 kB / 467 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.5038, allocations: 36.83 kB / 467 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003748/0.5042, allocations: 47.91 kB / 467.1 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.5061, allocations: 1.551 MB / 468.6 MB, free: 2.039 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004474/0.5066, allocations: 47.88 kB / 468.7 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.5066, allocations: 12 kB / 468.7 MB, free: 1.98 MB / 346.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 () * 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: 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.0002907/0.5069, allocations: 216.8 kB / 468.9 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-05/0.507, allocations: 23.72 kB / 468.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.371e-05/0.5071, allocations: 29.83 kB / 469 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.5071, allocations: 4 kB / 469 MB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.5071, allocations: 0 / 469 MB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.5072, allocations: 3.938 kB / 469 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004074/0.5076, allocations: 301.3 kB / 469.3 MB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.5076, allocations: 4 kB / 469.3 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002671/0.5079, allocations: 27.98 kB / 469.3 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004218/0.5083, allocations: 76.73 kB / 469.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.5083, allocations: 4 kB / 469.4 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003221/0.5116, allocations: 1.753 MB / 471.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5116, allocations: 0 / 471.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.5133, allocations: 377.5 kB / 471.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.5135, allocations: 108.7 kB / 471.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.118e-05/0.5135, allocations: 4 kB / 471.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004439/0.514, allocations: 39.95 kB / 471.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.5141, allocations: 19.97 kB / 471.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/0.5142, allocations: 8 kB / 471.7 MB, free: 14.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002952/0.5145, allocations: 186 kB / 471.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5145, allocations: 0 / 471.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007897/0.5153, allocations: 119.8 kB / 472 MB, free: 14.46 MB / 362.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) * Number of clocked states: 0 () * 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.002083/0.5174, allocations: 0.9096 MB / 472.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00266/0.5201, allocations: 0.6844 MB / 473.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.5201, allocations: 0 / 473.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008373/0.521, allocations: 253.1 kB / 473.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.5214, allocations: 44.53 kB / 473.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007943/0.5294, allocations: 3.247 MB / 477.1 MB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.5298, allocations: 0.756 MB / 477.9 MB, free: 8.375 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.5301, allocations: 79.34 kB / 477.9 MB, free: 8.297 MB / 362.7 MB Notification: Performance of SimCode: time 1.153e-06/0.5301, allocations: 0 / 477.9 MB, free: 8.297 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.556/3.086, allocations: 5.04 MB / 483 MB, free: 3.266 MB / 362.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