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.001275/0.001275, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008733/0.0008733, allocations: 98.05 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.928e-05/1.931e-05, allocations: 7.984 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09314, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3142/0.4074, allocations: 82.31 MB / 469.9 MB, free: 12.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.4077, allocations: 76.7 kB / 469.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04153/0.4493, allocations: 15.68 MB / 485.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4493, allocations: 0 / 485.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.439e-05/0.4494, allocations: 20 kB / 485.6 MB, free: 12.65 MB / 362.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.002245/0.4516, allocations: 1.123 MB / 486.8 MB, free: 11.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.4517, allocations: 16.03 kB / 486.8 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.4519, allocations: 110.7 kB / 486.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008021/0.4527, allocations: 0.5549 MB / 487.4 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.4527, allocations: 31.95 kB / 487.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.4528, allocations: 59.98 kB / 487.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001275/0.4541, allocations: 0.7303 MB / 488.3 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.4554, allocations: 0.6712 MB / 488.9 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.4554, allocations: 0 / 488.9 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.896e-05/0.4555, allocations: 0 / 488.9 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.4555, allocations: 24 kB / 489 MB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005289/0.4608, allocations: 3.133 MB / 492.1 MB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009094/0.4617, allocations: 0.6042 MB / 492.7 MB, free: 5.375 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004884/0.4622, allocations: 375.8 kB / 493.1 MB, free: 5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.061e-05/0.4623, allocations: 8.562 kB / 493.1 MB, free: 4.992 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.4623, allocations: 43.12 kB / 493.1 MB, free: 4.941 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 2.635e-06/0.4624, allocations: 0 / 493.1 MB, free: 4.941 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.006324/0.4687, allocations: 2.427 MB / 495.5 MB, free: 2.461 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.4688, allocations: 72.14 kB / 495.6 MB, free: 2.379 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005609/0.4693, allocations: 454.2 kB / 496.1 MB, free: 1.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.166e-05/0.4694, allocations: 25.7 kB / 496.1 MB, free: 1.898 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.4697, allocations: 447.1 kB / 496.5 MB, free: 1.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.4699, allocations: 248.2 kB / 496.8 MB, free: 1.207 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.4699, allocations: 0 / 496.8 MB, free: 1.207 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4701, allocations: 382.8 kB / 497.1 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004224/0.4705, allocations: 270.6 kB / 497.4 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.471, allocations: 413 kB / 497.8 MB, free: 116 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.4727, allocations: 0.5665 MB / 498.4 MB, free: 15.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4727, allocations: 0 / 498.4 MB, free: 15.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00283/0.4756, allocations: 1.203 MB / 499.6 MB, free: 14.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.4756, allocations: 4 kB / 499.6 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.4756, allocations: 7.984 kB / 499.6 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005306/0.4762, allocations: 182.4 kB / 499.8 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008892/0.4771, allocations: 199.8 kB / 500 MB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.4803, allocations: 2.532 MB / 0.4907 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00066/0.481, allocations: 23.98 kB / 0.4907 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/0.481, allocations: 36.05 kB / 0.4908 GB, free: 11.24 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 () * 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,68.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001842/0.4812, allocations: 122.7 kB / 0.4909 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002429/0.4837, allocations: 1.003 MB / 0.4919 GB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.4838, allocations: 79.11 kB / 0.4919 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.484, allocations: 78.91 kB / 0.492 GB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.484, allocations: 11.94 kB / 0.492 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.484, allocations: 4 kB / 0.492 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.484, allocations: 3.984 kB / 0.492 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009469/0.485, allocations: 0.7643 MB / 0.4928 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.485, allocations: 0 / 0.4928 GB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007722/0.4858, allocations: 155.8 kB / 0.4929 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004814/0.4863, allocations: 176.6 kB / 0.4931 GB, free: 8.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.318e-05/0.4863, allocations: 20.09 kB / 0.4931 GB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003129/0.4895, allocations: 2.549 MB / 0.4956 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4895, allocations: 4 kB / 0.4956 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0031/0.4926, allocations: 1.494 MB / 0.4971 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.4928, allocations: 144.2 kB / 0.4972 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.4929, allocations: 8 kB / 0.4972 GB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006243/0.4935, allocations: 51.95 kB / 0.4973 GB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.4937, allocations: 52.73 kB / 0.4973 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.551e-05/0.4937, allocations: 23.98 kB / 0.4973 GB, free: 4.293 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000393/0.4941, allocations: 343 kB / 0.4977 GB, free: 3.957 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4941, allocations: 4 kB / 0.4977 GB, free: 3.953 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008379/0.495, allocations: 216 kB / 0.4979 GB, free: 3.742 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 () * 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.003416/0.4984, allocations: 2.059 MB / 0.4999 GB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.5001, allocations: 0.8931 MB / 0.5008 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.5002, allocations: 4 kB / 0.5008 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.5012, allocations: 0.579 MB / 0.5013 GB, free: 160 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005928/0.5018, allocations: 99.73 kB / 0.5014 GB, free: 64 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/0.5049, allocations: 1.742 MB / 0.5031 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.5055, allocations: 1.001 MB / 0.5041 GB, free: 13.24 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003946/0.5059, allocations: 81.12 kB / 0.5042 GB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004143/0.5063, allocations: 323.3 kB / 0.5045 GB, free: 12.84 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5063, allocations: 0 / 0.5045 GB, free: 12.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03809/0.5444, allocations: 15.23 MB / 0.5194 GB, free: 13.73 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.5446, allocations: 149 kB / 0.5195 GB, free: 13.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.326/2.871, allocations: 1.875 kB / 0.5195 GB, free: 13.54 MB / 410.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)