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.00169/0.00169, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.002269/0.002269, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.555/1.555, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001441/0.001441, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.09791, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2506/0.3486, allocations: 5.697 MB / 380.4 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004337/0.353, allocations: 1.442 MB / 381.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008534/0.3539, allocations: 18.78 kB / 381.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005514/0.3545, allocations: 157 kB / 382 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000786/0.3553, allocations: 271.4 kB / 382.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.3564, allocations: 354.7 kB / 382.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.3586, allocations: 1.245 MB / 383.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.3597, allocations: 417.5 kB / 384.2 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00155/0.3613, allocations: 463.8 kB / 384.7 MB, free: 8.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009824/0.3623, allocations: 0.5267 MB / 385.2 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002627/0.3626, allocations: 124.7 kB / 385.3 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004385/0.363, allocations: 163.6 kB / 385.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002456/0.3633, allocations: 252.5 kB / 385.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007391/0.364, allocations: 0.5403 MB / 386.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002182/0.3662, allocations: 1.403 MB / 387.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3662, allocations: 0 / 387.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3662, allocations: 1.5 kB / 387.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.945e-05/0.3663, allocations: 1.281 kB / 387.7 MB, free: 6.828 MB / 318.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.003374/0.3697, allocations: 1.294 MB / 389 MB, free: 5.996 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.589e-05/0.3697, allocations: 14.19 kB / 389 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002164/0.37, allocations: 130 kB / 389.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003243/0.3703, allocations: 104.2 kB / 389.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.3714, allocations: 0.5127 MB / 389.7 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.693e-05/0.3715, allocations: 59.41 kB / 389.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.3716, allocations: 81.41 kB / 389.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.3734, allocations: 0.8836 MB / 390.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.3734, allocations: 0 / 390.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.883e-05/0.3735, allocations: 31.66 kB / 390.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.603e-05/0.3735, allocations: 23.61 kB / 390.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.3753, allocations: 0.784 MB / 391.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005768/0.381, allocations: 3.021 MB / 394.6 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3823, allocations: 0.6474 MB / 395.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000717/0.383, allocations: 410.7 kB / 395.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.973e-05/0.3831, allocations: 16.67 kB / 395.7 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.3832, allocations: 43.09 kB / 395.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 3.076e-06/0.3832, allocations: 5.031 kB / 395.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004839/0.388, allocations: 2.191 MB / 397.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.3881, allocations: 59.59 kB / 398 MB, free: 1.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006914/0.3888, allocations: 0.5049 MB / 398.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.775e-05/0.3889, allocations: 37.61 kB / 398.5 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.3891, allocations: 390.6 kB / 398.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.3892, allocations: 255.3 kB / 399.2 MB, free: 488 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.3895, allocations: 138.9 kB / 399.3 MB, free: 412 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3896, allocations: 379.4 kB / 399.7 MB, free: 60 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007823/0.3904, allocations: 326.1 kB / 400 MB, free: 0 / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.3914, allocations: 460.3 kB / 400.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.3929, allocations: 0.7439 MB / 401.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.393, allocations: 1.531 kB / 401.2 MB, free: 15.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002373/0.3953, allocations: 1.032 MB / 402.2 MB, free: 15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.3954, allocations: 7.094 kB / 402.2 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.3954, allocations: 7.312 kB / 402.2 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006886/0.3961, allocations: 188.5 kB / 402.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009015/0.397, allocations: 186.6 kB / 402.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004866/0.4019, allocations: 2.861 MB / 405.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.4031, allocations: 33.3 kB / 405.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.4032, allocations: 33.45 kB / 405.5 MB, free: 12.54 MB / 334.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.0006995/0.4039, allocations: 216.9 kB / 405.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002299/0.4042, allocations: 74.19 kB / 405.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002066/0.4044, allocations: 82.64 kB / 405.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.4044, allocations: 10.81 kB / 405.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-05/0.4045, allocations: 3.438 kB / 405.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.4045, allocations: 7.984 kB / 405.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.4059, allocations: 0.8367 MB / 406.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.4059, allocations: 1.312 kB / 406.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007458/0.4066, allocations: 143.8 kB / 406.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005729/0.4072, allocations: 187.1 kB / 407.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.819e-05/0.4073, allocations: 22.89 kB / 407.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004095/0.4114, allocations: 2.856 MB / 409.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4114, allocations: 1.125 kB / 409.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.4141, allocations: 1.383 MB / 411.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/0.4144, allocations: 141.8 kB / 411.5 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.66e-05/0.4145, allocations: 16.53 kB / 411.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000585/0.4151, allocations: 47.72 kB / 411.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.4153, allocations: 54.67 kB / 411.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.923e-05/0.4153, allocations: 24.11 kB / 411.6 MB, free: 8.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004217/0.4157, allocations: 360.9 kB / 412 MB, free: 7.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4158, allocations: 0 / 412 MB, free: 7.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001208/0.417, allocations: 227.9 kB / 412.2 MB, free: 7.816 MB / 334.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.002938/0.4199, allocations: 1.957 MB / 414.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.4222, allocations: 0.9975 MB / 415.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4222, allocations: 6.312 kB / 415.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001322/0.4235, allocations: 0.6466 MB / 415.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007308/0.4243, allocations: 135.4 kB / 415.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/0.4344, allocations: 6.869 MB / 422.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.4349, allocations: 0.9577 MB / 423.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000362/0.4353, allocations: 81.05 kB / 423.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003735/0.4357, allocations: 295.3 kB / 424.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4357, allocations: 0 / 424.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04369/0.4794, allocations: 17.84 MB / 442 MB, free: 11.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.35, allocations: 7.844 kB / 442 MB, free: 11.17 MB / 366.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)