Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 90.72 kB / 17.3 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 177.1 kB / 18.21 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.4 MB / 224.4 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005085/0.0005085, allocations: 12 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08261/0.08313, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004769/0.08793, allocations: 5.255 MB / 334.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.09047, allocations: 1.438 MB / 335.7 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002982/0.09079, allocations: 16 kB / 335.8 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.09104, allocations: 119.1 kB / 335.9 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004336/0.09148, allocations: 234 kB / 336.1 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005445/0.09203, allocations: 303.7 kB / 336.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009122/0.09296, allocations: 1.167 MB / 337.6 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004377/0.0934, allocations: 354.7 kB / 337.9 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004099/0.09382, allocations: 382.5 kB / 338.3 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004603/0.09429, allocations: 465.9 kB / 338.7 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.224e-05/0.09439, allocations: 56 kB / 338.8 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.09459, allocations: 83.98 kB / 338.9 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.09473, allocations: 183.2 kB / 339.1 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003716/0.09511, allocations: 495.3 kB / 339.5 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009737/0.09609, allocations: 1.304 MB / 340.8 MB, free: 7.785 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.0961, allocations: 0 / 340.8 MB, free: 7.785 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09611, allocations: 0 / 340.8 MB, free: 7.785 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.09613, allocations: 0 / 340.8 MB, free: 7.785 MB / 286.1 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.002115/0.09825, allocations: 1.142 MB / 342 MB, free: 6.594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.0983, allocations: 19.97 kB / 342 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001526/0.09846, allocations: 131.1 kB / 342.1 MB, free: 6.438 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.09861, allocations: 99.81 kB / 342.2 MB, free: 6.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.0992, allocations: 0.5051 MB / 342.7 MB, free: 5.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.837e-05/0.09925, allocations: 70.31 kB / 342.8 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.09939, allocations: 84.28 kB / 342.9 MB, free: 5.641 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.1009, allocations: 0.8924 MB / 343.8 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.1009, allocations: 0 / 343.8 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.672e-05/0.101, allocations: 32 kB / 343.8 MB, free: 4.703 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.101, allocations: 20 kB / 343.8 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001515/0.1026, allocations: 0.812 MB / 344.6 MB, free: 3.871 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004742/0.1073, allocations: 3.088 MB / 347.7 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.1084, allocations: 0.6734 MB / 348.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006623/0.1091, allocations: 422.4 kB / 348.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.577e-05/0.1092, allocations: 16.53 kB / 348.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.1092, allocations: 43.12 kB / 348.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.695e-06/0.1092, allocations: 0 / 348.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004398/0.1136, allocations: 2.256 MB / 351.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.1137, allocations: 60.06 kB / 351.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005502/0.1143, allocations: 0.5028 MB / 351.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/0.1143, allocations: 41.7 kB / 351.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002306/0.1146, allocations: 395.5 kB / 352.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.1147, allocations: 256.3 kB / 352.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.894e-05/0.1148, allocations: 61.69 kB / 352.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.115, allocations: 378.8 kB / 352.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005995/0.1156, allocations: 321.9 kB / 353.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000671/0.1163, allocations: 437.1 kB / 353.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.1176, allocations: 0.7779 MB / 354.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1176, allocations: 0 / 354.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00193/0.1195, allocations: 1.064 MB / 355.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1195, allocations: 4 kB / 355.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1196, allocations: 7.984 kB / 355.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005233/0.1201, allocations: 188.1 kB / 355.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007789/0.1209, allocations: 191.8 kB / 355.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003347/0.1242, allocations: 2.6 MB / 358.4 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005704/0.1248, allocations: 43.98 kB / 358.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.1249, allocations: 31.98 kB / 358.4 MB, free: 5.617 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003347/0.1252, allocations: 221.8 kB / 358.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.1253, allocations: 67.25 kB / 358.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.1255, allocations: 86.17 kB / 358.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.1255, allocations: 7.938 kB / 358.8 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.1256, allocations: 4 kB / 358.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.1256, allocations: 11.86 kB / 358.8 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009049/0.1265, allocations: 0.8338 MB / 359.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.1265, allocations: 128 / 359.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006733/0.1272, allocations: 159.8 kB / 359.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004898/0.1277, allocations: 181.5 kB / 360 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.152e-05/0.1277, allocations: 23.98 kB / 360 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003163/0.1309, allocations: 2.611 MB / 362.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1309, allocations: 0 / 362.6 MB, free: 1.223 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.1334, allocations: 1.42 MB / 364.1 MB, free: 15.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.1335, allocations: 136.2 kB / 364.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/0.1336, allocations: 20 kB / 364.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005716/0.1342, allocations: 59.95 kB / 364.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.1343, allocations: 56.58 kB / 364.3 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/0.1344, allocations: 23.98 kB / 364.3 MB, free: 15.47 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003704/0.1347, allocations: 354.9 kB / 364.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1347, allocations: 0 / 364.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007322/0.1355, allocations: 228 kB / 364.9 MB, free: 14.9 MB / 318.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002924/0.1384, allocations: 2 MB / 366.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002255/0.1407, allocations: 1.026 MB / 367.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1407, allocations: 0 / 367.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.1421, allocations: 0.6465 MB / 368.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009055/0.143, allocations: 138.5 kB / 368.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.1536, allocations: 7.63 MB / 376.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.1541, allocations: 0.9539 MB / 377.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003752/0.1545, allocations: 77.06 kB / 377.4 MB, free: 2.176 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.1549, allocations: 291.3 kB / 377.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1549, allocations: 3.938 kB / 377.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1802/0.3351, allocations: 16.31 MB / 394 MB, free: 47.14 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/0.3353, allocations: 232.8 kB / 394.2 MB, free: 46.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.106/2.441, allocations: 0 / 394.2 MB, free: 46.89 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)