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.001895/0.001895, allocations: 110.6 kB / 17.73 MB, free: 5.301 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.002124/0.002124, allocations: 194.9 kB / 18.67 MB, free: 4.363 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.486/1.486, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001643/0.001643, allocations: 55.92 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09463, allocations: 46.61 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2062/0.3009, allocations: 5.698 MB / 380.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.3036, allocations: 1.441 MB / 381.8 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003523/0.304, allocations: 18.66 kB / 381.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003342/0.3044, allocations: 157.1 kB / 382 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004512/0.3049, allocations: 275.2 kB / 382.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007497/0.3056, allocations: 353.3 kB / 382.6 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.3069, allocations: 1.241 MB / 383.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006008/0.3075, allocations: 428.8 kB / 384.2 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005474/0.3081, allocations: 457.1 kB / 384.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000579/0.3086, allocations: 0.527 MB / 385.2 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000166/0.3088, allocations: 124.8 kB / 385.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003111/0.3091, allocations: 160.3 kB / 385.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.3093, allocations: 250 kB / 385.7 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004133/0.3098, allocations: 0.5389 MB / 386.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.3113, allocations: 1.418 MB / 387.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3114, allocations: 0 / 387.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3114, allocations: 1.312 kB / 387.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.052e-05/0.3114, allocations: 0 / 387.7 MB, free: 6.82 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.002409/0.3138, allocations: 1.311 MB / 389 MB, free: 5.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.3139, allocations: 10.05 kB / 389 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.314, allocations: 131 kB / 389.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.3142, allocations: 108.8 kB / 389.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006992/0.3149, allocations: 0.5142 MB / 389.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.315, allocations: 59.25 kB / 389.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3151, allocations: 85.39 kB / 389.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.3166, allocations: 0.8866 MB / 390.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.3166, allocations: 1.219 kB / 390.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.447e-05/0.3167, allocations: 35.47 kB / 390.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.3167, allocations: 20.28 kB / 390.9 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/0.3183, allocations: 0.7842 MB / 391.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005001/0.3233, allocations: 3.023 MB / 394.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3245, allocations: 0.6548 MB / 395.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007338/0.3252, allocations: 409 kB / 395.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.654e-05/0.3253, allocations: 10.8 kB / 395.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.3253, allocations: 43.44 kB / 395.8 MB, free: 2.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.885e-06/0.3253, allocations: 0 / 395.8 MB, free: 2.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004791/0.3301, allocations: 2.209 MB / 398 MB, free: 1.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.3302, allocations: 64.56 kB / 398 MB, free: 1.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007198/0.3309, allocations: 0.5029 MB / 398.5 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.331, allocations: 36.77 kB / 398.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.3312, allocations: 404.4 kB / 399 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.3314, allocations: 268.5 kB / 399.2 MB, free: 412 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.3316, allocations: 135.6 kB / 399.4 MB, free: 340 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3318, allocations: 374.9 kB / 399.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006514/0.3324, allocations: 312.1 kB / 400 MB, free: 15.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007442/0.3332, allocations: 427.1 kB / 400.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.3346, allocations: 0.735 MB / 401.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3346, allocations: 5.156 kB / 401.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002247/0.3369, allocations: 1.047 MB / 402.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.3369, allocations: 6.125 kB / 402.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.337, allocations: 3.531 kB / 402.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006202/0.3376, allocations: 188.5 kB / 402.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008273/0.3384, allocations: 187.3 kB / 402.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004193/0.3426, allocations: 2.865 MB / 405.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007342/0.3434, allocations: 33.78 kB / 405.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-05/0.3435, allocations: 33.3 kB / 405.6 MB, free: 12.3 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.0004772/0.344, allocations: 220.1 kB / 405.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.3441, allocations: 75.5 kB / 405.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.3443, allocations: 88.59 kB / 405.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.3443, allocations: 10.81 kB / 405.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/0.3444, allocations: 3.25 kB / 405.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.3444, allocations: 3.984 kB / 405.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.3456, allocations: 0.8363 MB / 406.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3457, allocations: 1.688 kB / 406.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/0.3464, allocations: 147.1 kB / 406.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005566/0.347, allocations: 191.8 kB / 407.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.107e-05/0.347, allocations: 22.42 kB / 407.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004166/0.3512, allocations: 2.851 MB / 410 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3512, allocations: 1 kB / 410 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002845/0.3541, allocations: 1.394 MB / 411.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002487/0.3543, allocations: 145.2 kB / 411.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.3545, allocations: 13.78 kB / 411.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005817/0.3551, allocations: 51.91 kB / 411.6 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.3552, allocations: 54.98 kB / 411.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.775e-05/0.3553, allocations: 25.58 kB / 411.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004489/0.3557, allocations: 356.8 kB / 412 MB, free: 7.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3557, allocations: 0 / 412 MB, free: 7.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008586/0.3566, allocations: 227.3 kB / 412.2 MB, free: 7.551 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.003258/0.3599, allocations: 1.96 MB / 414.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002653/0.3625, allocations: 1 MB / 415.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3626, allocations: 5.469 kB / 415.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.3642, allocations: 0.6415 MB / 415.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009445/0.3652, allocations: 148 kB / 416 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.3771, allocations: 6.902 MB / 422.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006559/0.3778, allocations: 0.9577 MB / 423.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000427/0.3782, allocations: 81.06 kB / 423.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004231/0.3787, allocations: 291.3 kB / 424.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3787, allocations: 0 / 424.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05314/0.4318, allocations: 17.55 MB / 441.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.64, allocations: 4.062 kB / 441.8 MB, free: 11.16 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)