Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001577/0.001577, allocations: 185.8 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 1.952/1.952, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001154/0.001154, allocations: 89.3 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005276/0.0005276, allocations: 12 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3305, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.129/0.4595, allocations: 80.17 MB / 454.8 MB, free: 488 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/0.4599, allocations: 75.97 kB / 454.9 MB, free: 412 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06433/0.5242, allocations: 14.3 MB / 469.2 MB, free: 2.039 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5243, allocations: 0 / 469.2 MB, free: 2.039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.114e-05/0.5244, allocations: 24 kB / 469.2 MB, free: 2.016 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.004099/0.5285, allocations: 1.13 MB / 470.3 MB, free: 0.832 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.79e-05/0.5286, allocations: 8.031 kB / 470.3 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004205/0.529, allocations: 131 kB / 470.5 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002987/0.5293, allocations: 106.7 kB / 470.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.5305, allocations: 496.3 kB / 471.1 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.95e-05/0.5306, allocations: 62.05 kB / 471.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/0.5309, allocations: 87.91 kB / 471.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/0.5337, allocations: 0.8765 MB / 472.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.271e-05/0.5338, allocations: 0 / 472.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001424/0.5339, allocations: 32 kB / 472.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.138e-05/0.534, allocations: 24 kB / 472.1 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003046/0.537, allocations: 0.8042 MB / 472.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009232/0.5463, allocations: 3.104 MB / 476 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/0.5483, allocations: 0.6708 MB / 476.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.5485, allocations: 16.48 kB / 476.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/0.5485, allocations: 43.12 kB / 476.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.507e-06/0.5485, allocations: 0 / 476.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.008726/0.5573, allocations: 2.359 MB / 479.1 MB, free: 7.758 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.5574, allocations: 56.06 kB / 479.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009094/0.5583, allocations: 450.1 kB / 479.6 MB, free: 7.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001858/0.5585, allocations: 41.7 kB / 479.7 MB, free: 7.199 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003496/0.5589, allocations: 422 kB / 480.1 MB, free: 6.781 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003462/0.5592, allocations: 264.2 kB / 480.3 MB, free: 6.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.802e-05/0.5593, allocations: 16 kB / 480.4 MB, free: 6.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.5595, allocations: 342.8 kB / 480.7 MB, free: 6.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.5607, allocations: 317.8 kB / 481 MB, free: 5.852 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.562, allocations: 433.8 kB / 481.4 MB, free: 5.391 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.5633, allocations: 370.9 kB / 481.8 MB, free: 5.031 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.5634, allocations: 3.953 kB / 481.8 MB, free: 5.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003632/0.567, allocations: 1.013 MB / 482.8 MB, free: 4.004 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.5671, allocations: 15.95 kB / 482.8 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.5671, allocations: 7.984 kB / 482.8 MB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009574/0.5681, allocations: 176 kB / 483 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.5698, allocations: 191.8 kB / 483.2 MB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006306/0.5761, allocations: 2.652 MB / 485.8 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.5773, allocations: 40.03 kB / 485.9 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.5775, allocations: 35.98 kB / 485.9 MB, free: 0.7539 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005976/0.5781, allocations: 217.8 kB / 486.1 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.5783, allocations: 75.25 kB / 486.2 MB, free: 468 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.5786, allocations: 82.17 kB / 486.3 MB, free: 384 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.5786, allocations: 8 kB / 486.3 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/0.5787, allocations: 4 kB / 486.3 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.5787, allocations: 3.984 kB / 486.3 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.5805, allocations: 0.8416 MB / 487.1 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.619e-06/0.5806, allocations: 0 / 487.1 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.5821, allocations: 155.8 kB / 487.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009635/0.5831, allocations: 183.5 kB / 487.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/0.5833, allocations: 19.98 kB / 487.5 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006046/0.5893, allocations: 2.663 MB / 490.1 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5894, allocations: 0 / 490.1 MB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/0.5941, allocations: 1.416 MB / 491.6 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003081/0.5945, allocations: 140.2 kB / 491.7 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002226/0.5947, allocations: 16 kB / 491.7 MB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.5958, allocations: 59.95 kB / 491.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.5961, allocations: 52.58 kB / 491.8 MB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.5962, allocations: 27.94 kB / 491.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006646/0.5969, allocations: 346.9 kB / 492.2 MB, free: 10.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.32e-07/0.5969, allocations: 0 / 492.2 MB, free: 10.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001251/0.5981, allocations: 240.1 kB / 492.4 MB, free: 10.01 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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00526/0.6034, allocations: 1.992 MB / 494.4 MB, free: 7.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003846/0.6073, allocations: 1.018 MB / 495.4 MB, free: 6.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.6074, allocations: 4 kB / 495.4 MB, free: 6.949 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002515/0.6099, allocations: 0.663 MB / 496.1 MB, free: 6.273 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.611, allocations: 120.1 kB / 496.2 MB, free: 6.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3015/0.9125, allocations: 6.876 MB / 0.4913 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009275/0.9135, allocations: 0.9686 MB / 0.4922 GB, free: 104.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.9146, allocations: 305.5 kB / 0.4925 GB, free: 104.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/0.9147, allocations: 1.375 kB / 0.4925 GB, free: 104.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.871/3.785, allocations: 16.81 MB / 0.509 GB, free: 100.4 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)