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.002394/0.002393, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.478/2.478, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001107/0.001107, allocations: 89.97 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.259e-05/3.292e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09709, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4029/0.5001, allocations: 80.08 MB / 449.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/0.5004, allocations: 76.17 kB / 449.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06735/0.5678, allocations: 14.31 MB / 463.6 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5679, allocations: 0 / 463.6 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.92e-05/0.568, allocations: 20 kB / 463.7 MB, free: 0.6172 MB / 330.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.003996/0.572, allocations: 1.065 MB / 464.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.5721, allocations: 12.03 kB / 464.7 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003886/0.5725, allocations: 123 kB / 464.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000335/0.5728, allocations: 106.7 kB / 465 MB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.574, allocations: 0.4886 MB / 465.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.204e-05/0.5741, allocations: 58 kB / 465.5 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/0.5744, allocations: 80 kB / 465.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002435/0.5768, allocations: 0.8221 MB / 466.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.888e-05/0.5769, allocations: 0 / 466.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.5771, allocations: 36 kB / 466.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.5771, allocations: 20 kB / 466.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00237/0.5795, allocations: 0.7146 MB / 467.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009478/0.589, allocations: 3.104 MB / 470.3 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001878/0.591, allocations: 0.6089 MB / 470.9 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.592, allocations: 382.5 kB / 471.3 MB, free: 8.766 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001044/0.5922, allocations: 16.55 kB / 471.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.5922, allocations: 43.12 kB / 471.3 MB, free: 8.699 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 3.577e-06/0.5922, allocations: 0 / 471.3 MB, free: 8.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.005965/0.5982, allocations: 1.802 MB / 473.1 MB, free: 6.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.5983, allocations: 60.19 kB / 473.2 MB, free: 6.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00096/0.5993, allocations: 448.8 kB / 473.6 MB, free: 6.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002252/0.5996, allocations: 45.64 kB / 473.7 MB, free: 6.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000369/0.5999, allocations: 418 kB / 474.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004202/0.6004, allocations: 248.4 kB / 474.3 MB, free: 5.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-05/0.6005, allocations: 16 kB / 474.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.6007, allocations: 342.8 kB / 474.7 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008935/0.6016, allocations: 274 kB / 474.9 MB, free: 4.984 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009947/0.6026, allocations: 389 kB / 475.3 MB, free: 4.566 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.6037, allocations: 322 kB / 475.6 MB, free: 4.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.6037, allocations: 4 kB / 475.6 MB, free: 4.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003143/0.6069, allocations: 0.9224 MB / 476.5 MB, free: 3.316 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/0.607, allocations: 4 kB / 476.6 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.607, allocations: 4 kB / 476.6 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009646/0.608, allocations: 184.7 kB / 476.7 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.6097, allocations: 195.7 kB / 476.9 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00608/0.6159, allocations: 2.592 MB / 479.5 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.6172, allocations: 36.05 kB / 479.6 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003857/0.6176, allocations: 39.94 kB / 479.6 MB, free: 132 kB / 346.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 () * 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.0009007/0.6186, allocations: 144.8 kB / 479.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004883/0.6191, allocations: 75.14 kB / 479.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003644/0.6195, allocations: 90.16 kB / 479.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.6195, allocations: 8 kB / 479.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.6196, allocations: 0 / 479.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.6196, allocations: 7.984 kB / 479.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.6216, allocations: 0.8379 MB / 480.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-05/0.6216, allocations: 3.984 kB / 480.8 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/0.6232, allocations: 151.8 kB / 480.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009753/0.6242, allocations: 172.7 kB / 481.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/0.6244, allocations: 19.98 kB / 481.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005834/0.6302, allocations: 2.621 MB / 483.7 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.6303, allocations: 0 / 483.7 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003795/0.6341, allocations: 1.28 MB / 485 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003186/0.6344, allocations: 140.2 kB / 485.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.6346, allocations: 20 kB / 485.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.6358, allocations: 63.91 kB / 485.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.636, allocations: 52.7 kB / 485.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-05/0.6361, allocations: 23.98 kB / 485.3 MB, free: 10.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006701/0.6368, allocations: 345.6 kB / 485.6 MB, free: 9.863 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6368, allocations: 0 / 485.6 MB, free: 9.863 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001249/0.6381, allocations: 232.1 kB / 485.9 MB, free: 9.637 MB / 362.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 () * 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.004341/0.6424, allocations: 1.879 MB / 487.7 MB, free: 7.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003197/0.6457, allocations: 0.9248 MB / 488.7 MB, free: 6.793 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.6457, allocations: 0 / 488.7 MB, free: 6.793 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00223/0.648, allocations: 0.5933 MB / 489.2 MB, free: 6.188 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.6491, allocations: 122.3 kB / 489.4 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005456/0.6546, allocations: 1.774 MB / 491.1 MB, free: 4.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007143/0.6554, allocations: 0.9658 MB / 492.1 MB, free: 3.262 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008319/0.6563, allocations: 307.3 kB / 492.4 MB, free: 2.961 MB / 362.7 MB Notification: Performance of SimCode: time 5.039e-06/0.6563, allocations: 0 / 492.4 MB, free: 2.961 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.966/3.622, allocations: 16.72 MB / 0.4972 GB, free: 2.211 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)