Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000882/0.0008819, allocations: 92.28 kB / 292.1 MB, free: 5.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.291e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4198/0.526, allocations: 83.79 MB / 485.9 MB, free: 5.758 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.5263, allocations: 77.14 kB / 486 MB, free: 5.719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03967/0.566, allocations: 15.97 MB / 0.4902 GB, free: 7.355 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.566, allocations: 3.938 kB / 0.4902 GB, free: 7.352 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.312e-05/0.5661, allocations: 24 kB / 0.4902 GB, free: 7.328 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.002226/0.5683, allocations: 1.122 MB / 0.4913 GB, free: 6.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.5684, allocations: 8.031 kB / 0.4913 GB, free: 6.156 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001639/0.5685, allocations: 131.5 kB / 0.4914 GB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003243/0.5689, allocations: 139.4 kB / 0.4916 GB, free: 5.883 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008439/0.5697, allocations: 0.5546 MB / 0.4921 GB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.684e-05/0.5698, allocations: 66 kB / 0.4922 GB, free: 5.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.5699, allocations: 91.94 kB / 0.4923 GB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.5714, allocations: 0.7962 MB / 0.493 GB, free: 4.328 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.5714, allocations: 0 / 0.493 GB, free: 4.328 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.419e-05/0.5715, allocations: 36 kB / 0.4931 GB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.5715, allocations: 20 kB / 0.4931 GB, free: 4.273 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.5728, allocations: 0.7735 MB / 0.4938 GB, free: 3.504 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0053/0.5781, allocations: 3.303 MB / 0.4971 GB, free: 80 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009338/0.5791, allocations: 0.625 MB / 0.4977 GB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005376/0.5796, allocations: 393.1 kB / 0.4981 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.103e-05/0.5797, allocations: 16.55 kB / 0.4981 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.5798, allocations: 55.06 kB / 0.4981 GB, free: 14.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.535e-06/0.5798, allocations: 3.938 kB / 0.4981 GB, free: 14.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.003278/0.583, allocations: 1.853 MB / 0.4999 GB, free: 13.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.5831, allocations: 64.17 kB / 0.5 GB, free: 12.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000604/0.5837, allocations: 0.5269 MB / 0.5005 GB, free: 12.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.5838, allocations: 45.7 kB / 0.5006 GB, free: 12.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.5841, allocations: 443.2 kB / 0.501 GB, free: 11.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.5843, allocations: 260.2 kB / 0.5012 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.363e-05/0.5843, allocations: 16 kB / 0.5012 GB, free: 11.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5845, allocations: 390.7 kB / 0.5016 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004668/0.5849, allocations: 282.7 kB / 0.5019 GB, free: 11.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006043/0.5855, allocations: 432.4 kB / 0.5023 GB, free: 10.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005561/0.5861, allocations: 350 kB / 0.5026 GB, free: 10.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.5861, allocations: 0 / 0.5026 GB, free: 10.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001769/0.5879, allocations: 1.039 MB / 0.5037 GB, free: 9.152 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.5879, allocations: 5.562 kB / 0.5037 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.588, allocations: 4 kB / 0.5037 GB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005356/0.5885, allocations: 191.6 kB / 0.5038 GB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008851/0.5894, allocations: 203.7 kB / 0.504 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003412/0.5928, allocations: 2.622 MB / 0.5066 GB, free: 6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007197/0.5936, allocations: 44.03 kB / 0.5066 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.804e-05/0.5936, allocations: 31.98 kB / 0.5067 GB, free: 5.926 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,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.5938, allocations: 149.3 kB / 0.5068 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.594, allocations: 79.06 kB / 0.5069 GB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000228/0.5942, allocations: 95.27 kB / 0.507 GB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.5942, allocations: 8 kB / 0.507 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.5942, allocations: 4 kB / 0.507 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.5942, allocations: 3.984 kB / 0.507 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.5953, allocations: 0.8846 MB / 0.5079 GB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5953, allocations: 8.062 kB / 0.5079 GB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000713/0.596, allocations: 163.8 kB / 0.508 GB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004944/0.5966, allocations: 178.6 kB / 0.5082 GB, free: 4.301 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.725e-05/0.5966, allocations: 23.98 kB / 0.5082 GB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003239/0.5999, allocations: 2.616 MB / 0.5108 GB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5999, allocations: 6.344 kB / 0.5108 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.602, allocations: 1.33 MB / 0.5121 GB, free: 180 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001878/0.6022, allocations: 148.2 kB / 0.5122 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.6023, allocations: 24.12 kB / 0.5122 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.6029, allocations: 59.97 kB / 0.5123 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.603, allocations: 56.69 kB / 0.5124 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.442e-05/0.6031, allocations: 23.98 kB / 0.5124 GB, free: 15.85 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005045/0.6036, allocations: 415.2 kB / 0.5128 GB, free: 15.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6036, allocations: 0 / 0.5128 GB, free: 15.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008476/0.6045, allocations: 251.9 kB / 0.513 GB, free: 15.2 MB / 394.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.002421/0.6069, allocations: 1.911 MB / 0.5149 GB, free: 13.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.6088, allocations: 0.9663 MB / 0.5158 GB, free: 12.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6088, allocations: 4 kB / 0.5158 GB, free: 12.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.61, allocations: 0.5971 MB / 0.5164 GB, free: 11.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006269/0.6106, allocations: 125.5 kB / 0.5165 GB, free: 11.56 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0033/0.6139, allocations: 1.823 MB / 0.5183 GB, free: 9.699 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/0.6145, allocations: 1.001 MB / 0.5193 GB, free: 8.668 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004041/0.6149, allocations: 85.86 kB / 0.5194 GB, free: 8.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/0.6153, allocations: 327.3 kB / 0.5197 GB, free: 8.27 MB / 394.7 MB Notification: Performance of SimCode: time 1.362e-06/0.6153, allocations: 0 / 0.5197 GB, free: 8.27 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03453/0.6499, allocations: 17.06 MB / 0.5363 GB, free: 7.57 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/0.6501, allocations: 181.2 kB / 0.5365 GB, free: 7.344 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.484/3.134, allocations: 0 / 0.5365 GB, free: 7.344 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1e-08 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)