Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002355/0.002355, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009654/0.0009654, allocations: 98.02 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003415/0.0003416, allocations: 15.98 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2954, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.4232, allocations: 83.05 MB / 484.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.4236, allocations: 75.97 kB / 484.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04363/0.4672, allocations: 15.82 MB / 0.4888 GB, free: 13.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4673, allocations: 0 / 0.4888 GB, free: 13.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.47e-05/0.4673, allocations: 20 kB / 0.4888 GB, free: 13.45 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002673/0.47, allocations: 1.219 MB / 0.49 GB, free: 12.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.4701, allocations: 12.03 kB / 0.49 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002056/0.4703, allocations: 135.5 kB / 0.4901 GB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.4705, allocations: 114.7 kB / 0.4903 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009502/0.4715, allocations: 0.5549 MB / 0.4908 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.121e-05/0.4715, allocations: 66 kB / 0.4909 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.4717, allocations: 99.89 kB / 0.491 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.4733, allocations: 0.8507 MB / 0.4918 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.4733, allocations: 0 / 0.4918 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.721e-05/0.4734, allocations: 36 kB / 0.4918 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.4735, allocations: 20 kB / 0.4918 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/0.4753, allocations: 0.8746 MB / 0.4927 GB, free: 9.367 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005907/0.4812, allocations: 3.305 MB / 0.4959 GB, free: 5.938 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.4823, allocations: 0.6657 MB / 0.4966 GB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.622e-05/0.4824, allocations: 20.47 kB / 0.4966 GB, free: 5.242 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.4824, allocations: 43.06 kB / 0.4966 GB, free: 5.191 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 4.218e-06/0.4824, allocations: 3.984 kB / 0.4966 GB, free: 5.188 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.004887/0.4873, allocations: 2.441 MB / 0.499 GB, free: 2.676 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.4874, allocations: 60.06 kB / 0.4991 GB, free: 2.605 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006517/0.488, allocations: 0.5307 MB / 0.4996 GB, free: 2.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.487e-05/0.4881, allocations: 41.64 kB / 0.4996 GB, free: 2.023 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003178/0.4884, allocations: 443.3 kB / 0.5001 GB, free: 1.582 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.4886, allocations: 264.2 kB / 0.5003 GB, free: 1.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.4887, allocations: 20 kB / 0.5003 GB, free: 1.301 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.4889, allocations: 382.8 kB / 0.5007 GB, free: 0.918 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006381/0.4895, allocations: 333.9 kB / 0.501 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007388/0.4903, allocations: 476.6 kB / 0.5015 GB, free: 80 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2521/0.7424, allocations: 389.1 kB / 0.5018 GB, free: 93.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.7425, allocations: 1.281 kB / 0.5018 GB, free: 93.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002668/0.7451, allocations: 1.127 MB / 0.5029 GB, free: 93.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.7452, allocations: 13.88 kB / 0.5029 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.7452, allocations: 3.719 kB / 0.503 GB, free: 93.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006446/0.7458, allocations: 190.3 kB / 0.5031 GB, free: 93.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009859/0.7468, allocations: 211.8 kB / 0.5033 GB, free: 93.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003828/0.7507, allocations: 2.685 MB / 0.506 GB, free: 92.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007833/0.7515, allocations: 45.8 kB / 0.506 GB, free: 92.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.882e-05/0.7516, allocations: 33.36 kB / 0.506 GB, free: 92.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004485/0.752, allocations: 227.2 kB / 0.5063 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/0.7523, allocations: 86.45 kB / 0.5063 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.7525, allocations: 91.92 kB / 0.5064 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.7525, allocations: 7.375 kB / 0.5064 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.909e-05/0.7525, allocations: 2.781 kB / 0.5064 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.7526, allocations: 7.469 kB / 0.5064 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.7539, allocations: 0.8869 MB / 0.5073 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.7539, allocations: 3.562 kB / 0.5073 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000715/0.7546, allocations: 150.7 kB / 0.5075 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004762/0.7551, allocations: 182.6 kB / 0.5076 GB, free: 91.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.498e-05/0.7552, allocations: 23.8 kB / 0.5076 GB, free: 91.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003028/0.7582, allocations: 2.68 MB / 0.5103 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.7582, allocations: 0 / 0.5103 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.7605, allocations: 1.47 MB / 0.5117 GB, free: 89.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.7607, allocations: 145 kB / 0.5118 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.977e-05/0.7608, allocations: 18.08 kB / 0.5119 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005866/0.7614, allocations: 68.36 kB / 0.5119 GB, free: 89.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.7615, allocations: 52.42 kB / 0.512 GB, free: 89.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-05/0.7615, allocations: 22.95 kB / 0.512 GB, free: 89.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004529/0.762, allocations: 427.4 kB / 0.5124 GB, free: 89.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.762, allocations: 5.281 kB / 0.5124 GB, free: 89.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008498/0.7629, allocations: 245.9 kB / 0.5126 GB, free: 89.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002446/0.7653, allocations: 2.042 MB / 0.5146 GB, free: 88.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.7672, allocations: 1.063 MB / 0.5157 GB, free: 87.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7672, allocations: 0 / 0.5157 GB, free: 87.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.7684, allocations: 0.6455 MB / 0.5163 GB, free: 87.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00055/0.7689, allocations: 135 kB / 0.5164 GB, free: 87.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.7766, allocations: 7.913 MB / 0.5242 GB, free: 81.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.7772, allocations: 0.9986 MB / 0.5251 GB, free: 81.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000451/0.7777, allocations: 95.5 kB / 0.5252 GB, free: 81.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000392/0.7781, allocations: 317.6 kB / 0.5255 GB, free: 81.02 MB / 378.7 MB Notification: Performance of SimCode: time 2.415e-06/0.7781, allocations: 0 / 0.5255 GB, free: 81.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03144/0.8095, allocations: 17.22 MB / 0.5423 GB, free: 67.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.8097, allocations: 207.2 kB / 0.5425 GB, free: 67.19 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.655/3.464, allocations: 3.938 kB / 0.5425 GB, free: 67.18 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)