Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.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.VoltageFollower,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",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.002076/0.002076, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.23/2.23, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 105.2 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.441e-05/3.45e-05, allocations: 8 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3524, allocations: 47.58 MB / 362.4 MB, free: 45.79 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1704/0.5229, allocations: 78.36 MB / 440.8 MB, free: 7.875 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003805/0.5233, allocations: 79.75 kB / 440.9 MB, free: 7.801 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03155/0.5549, allocations: 5.591 MB / 446.5 MB, free: 2.227 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.555, allocations: 224 / 446.5 MB, free: 2.227 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.246e-05/0.555, allocations: 8 kB / 446.5 MB, free: 2.219 MB / 331.1 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.001416/0.5564, allocations: 0.5699 MB / 447 MB, free: 1.602 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.5565, allocations: 12.03 kB / 447.1 MB, free: 1.59 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.5566, allocations: 27.7 kB / 447.1 MB, free: 1.562 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004786/0.5571, allocations: 274.5 kB / 447.4 MB, free: 1.258 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.5571, allocations: 11.95 kB / 447.4 MB, free: 1.246 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.5572, allocations: 12 kB / 447.4 MB, free: 1.234 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004795/0.5577, allocations: 148.9 kB / 447.5 MB, free: 1.09 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004927/0.5582, allocations: 170.4 kB / 447.7 MB, free: 0.9141 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.5582, allocations: 4 kB / 447.7 MB, free: 0.9102 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.5583, allocations: 0 / 447.7 MB, free: 0.9102 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.5583, allocations: 8 kB / 447.7 MB, free: 0.9023 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.5607, allocations: 0.8502 MB / 448.6 MB, free: 15.99 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.5611, allocations: 183.7 kB / 448.7 MB, free: 15.78 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.5613, allocations: 48.89 kB / 448.8 MB, free: 15.73 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.5613, allocations: 5.969 kB / 448.8 MB, free: 15.73 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003422/0.5617, allocations: 131.2 kB / 448.9 MB, free: 15.58 MB / 347.1 MB Notification: Performance of pre-optimization done (n=11): time 2.965e-06/0.5617, allocations: 0 / 448.9 MB, free: 15.58 MB / 347.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007387/0.5624, allocations: 174.2 kB / 449.1 MB, free: 15.4 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/0.5625, allocations: 102.8 kB / 449.2 MB, free: 15.27 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.5629, allocations: 216.5 kB / 449.4 MB, free: 15.05 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.5629, allocations: 29.7 kB / 449.4 MB, free: 15.02 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.5631, allocations: 246.1 kB / 449.7 MB, free: 14.78 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.899e-05/0.5632, allocations: 31.55 kB / 449.7 MB, free: 14.75 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/0.5632, allocations: 0 / 449.7 MB, free: 14.75 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.5633, allocations: 322.8 kB / 450 MB, free: 14.42 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.5635, allocations: 48 kB / 450.1 MB, free: 14.38 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.5637, allocations: 136.8 kB / 450.2 MB, free: 14.2 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.5639, allocations: 63.89 kB / 450.3 MB, free: 14.13 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.5639, allocations: 0 / 450.3 MB, free: 14.13 MB / 347.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008151/0.5647, allocations: 254.5 kB / 450.5 MB, free: 13.88 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005068/0.5653, allocations: 1.163 MB / 451.7 MB, free: 12.62 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.5653, allocations: 4 kB / 451.7 MB, free: 12.61 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000214/0.5655, allocations: 32.84 kB / 451.7 MB, free: 12.58 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000469/0.566, allocations: 59.91 kB / 451.8 MB, free: 12.52 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004964/0.5665, allocations: 0.5588 MB / 452.3 MB, free: 11.94 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000566/0.5671, allocations: 56.41 kB / 452.4 MB, free: 11.89 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.5671, allocations: 8 kB / 452.4 MB, free: 11.88 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.5672, allocations: 4 kB / 452.4 MB, free: 11.88 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005395/0.5677, allocations: 181.3 kB / 452.6 MB, free: 11.7 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.5677, allocations: 3.984 kB / 452.6 MB, free: 11.69 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.551e-05/0.5678, allocations: 28.8 kB / 452.6 MB, free: 11.66 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003956/0.5682, allocations: 60.28 kB / 452.7 MB, free: 11.6 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.5695, allocations: 1.317 MB / 454 MB, free: 10.17 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.5699, allocations: 47.91 kB / 454 MB, free: 10.12 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.57, allocations: 8 kB / 454 MB, free: 10.12 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.5702, allocations: 119.5 kB / 454.1 MB, free: 9.996 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006123/0.5708, allocations: 191.6 kB / 454.3 MB, free: 9.801 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.965e-05/0.5709, allocations: 19.81 kB / 454.3 MB, free: 9.781 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.349e-05/0.571, allocations: 21.83 kB / 454.4 MB, free: 9.762 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.571, allocations: 0 / 454.4 MB, free: 9.762 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.571, allocations: 4 kB / 454.4 MB, free: 9.758 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.571, allocations: 4 kB / 454.4 MB, free: 9.754 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009767/0.572, allocations: 497 kB / 454.9 MB, free: 9.223 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.572, allocations: 0 / 454.9 MB, free: 9.223 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002664/0.5723, allocations: 35.97 kB / 454.9 MB, free: 9.188 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/0.5724, allocations: 28.84 kB / 454.9 MB, free: 9.156 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.5725, allocations: 6.594 kB / 454.9 MB, free: 9.152 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.5739, allocations: 1.325 MB / 456.3 MB, free: 7.715 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5739, allocations: 0 / 456.3 MB, free: 7.715 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006241/0.5746, allocations: 268.2 kB / 456.5 MB, free: 7.434 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.5747, allocations: 108.7 kB / 456.6 MB, free: 7.309 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.5748, allocations: 1.875 kB / 456.6 MB, free: 7.309 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004691/0.5752, allocations: 35.95 kB / 456.7 MB, free: 7.273 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.5754, allocations: 19.97 kB / 456.7 MB, free: 7.254 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.5754, allocations: 8 kB / 456.7 MB, free: 7.246 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.5756, allocations: 168.5 kB / 456.9 MB, free: 7.086 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5757, allocations: 0 / 456.9 MB, free: 7.086 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008023/0.5765, allocations: 103.7 kB / 457 MB, free: 6.984 MB / 347.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) * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/0.5775, allocations: 0.8194 MB / 457.8 MB, free: 6.133 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.5786, allocations: 450.5 kB / 458.2 MB, free: 5.66 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5786, allocations: 0 / 458.2 MB, free: 5.66 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003061/0.5789, allocations: 155 kB / 458.4 MB, free: 5.5 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004587/0.5794, allocations: 38.31 kB / 458.4 MB, free: 5.465 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.5805, allocations: 330.7 kB / 458.7 MB, free: 5.105 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.5809, allocations: 0.756 MB / 459.5 MB, free: 4.32 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.5811, allocations: 71.41 kB / 459.6 MB, free: 4.25 MB / 347.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5811, allocations: 4 kB / 459.6 MB, free: 4.246 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.784/3.365, allocations: 4.848 MB / 464.4 MB, free: 15.43 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower_res.mat does not exist to compare? outputFormat=mat