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.001696/0.001696, allocations: 113.2 kB / 17.73 MB, free: 5.324 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.002079/0.002079, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.54/1.54, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001166/0.001166, allocations: 52.39 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09886/0.1, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.2055/0.3056, allocations: 5.694 MB / 380.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.3088, allocations: 1.45 MB / 381.8 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006857/0.3095, allocations: 18.06 kB / 381.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004266/0.3101, allocations: 153.8 kB / 382 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007461/0.3108, allocations: 279.9 kB / 382.3 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.3119, allocations: 353.9 kB / 382.6 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.3136, allocations: 1.242 MB / 383.8 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006596/0.3142, allocations: 421.1 kB / 384.3 MB, free: 8.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000914/0.3152, allocations: 463.2 kB / 384.7 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000771/0.316, allocations: 0.5274 MB / 385.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.3162, allocations: 125.1 kB / 385.4 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004024/0.3166, allocations: 156.7 kB / 385.5 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.3168, allocations: 253.9 kB / 385.8 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006403/0.3175, allocations: 0.5393 MB / 386.3 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002091/0.3196, allocations: 1.408 MB / 387.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3196, allocations: 4 kB / 387.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.3196, allocations: 1.062 kB / 387.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.554e-05/0.3197, allocations: 0 / 387.7 MB, free: 6.812 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.003121/0.3228, allocations: 1.319 MB / 389 MB, free: 5.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.3229, allocations: 10.28 kB / 389 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001794/0.323, allocations: 129.3 kB / 389.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.3233, allocations: 109.3 kB / 389.3 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008055/0.3241, allocations: 0.5137 MB / 389.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.421e-05/0.3242, allocations: 62.02 kB / 389.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.3243, allocations: 83.95 kB / 389.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.3262, allocations: 0.8805 MB / 390.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.3263, allocations: 7 kB / 390.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-05/0.3264, allocations: 32.28 kB / 390.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.3264, allocations: 18.66 kB / 390.9 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.328, allocations: 0.7808 MB / 391.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00554/0.3335, allocations: 3.035 MB / 394.7 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.3348, allocations: 0.6485 MB / 395.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007364/0.3355, allocations: 409.7 kB / 395.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.84e-05/0.3356, allocations: 16.22 kB / 395.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.3356, allocations: 39.19 kB / 395.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 2.745e-06/0.3356, allocations: 3.938 kB / 395.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004689/0.3403, allocations: 2.203 MB / 398 MB, free: 1.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.3404, allocations: 64.91 kB / 398.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000639/0.341, allocations: 0.5021 MB / 398.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.228e-05/0.3411, allocations: 37.83 kB / 398.6 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.3413, allocations: 402.9 kB / 399 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.3415, allocations: 266.2 kB / 399.2 MB, free: 408 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.3417, allocations: 139.2 kB / 399.4 MB, free: 332 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3418, allocations: 375.6 kB / 399.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006141/0.3424, allocations: 311.7 kB / 400 MB, free: 15.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006893/0.3431, allocations: 424.6 kB / 400.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.3445, allocations: 0.7446 MB / 401.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.3445, allocations: 1.062 kB / 401.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.0022/0.3467, allocations: 1.044 MB / 402.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.3467, allocations: 6.75 kB / 402.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3467, allocations: 7.25 kB / 402.3 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006091/0.3474, allocations: 184.8 kB / 402.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008513/0.3482, allocations: 189.2 kB / 402.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00385/0.3521, allocations: 2.87 MB / 405.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008268/0.3529, allocations: 32.97 kB / 405.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-05/0.353, allocations: 24.91 kB / 405.6 MB, free: 12.29 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.0004328/0.3535, allocations: 225.9 kB / 405.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.3536, allocations: 78.89 kB / 405.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.3538, allocations: 81.91 kB / 405.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.3538, allocations: 10.62 kB / 405.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/0.3538, allocations: 2.719 kB / 405.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.3539, allocations: 5.484 kB / 406 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.355, allocations: 0.8329 MB / 406.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.355, allocations: 3.984 kB / 406.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.3557, allocations: 149.5 kB / 406.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005434/0.3563, allocations: 179.1 kB / 407.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-05/0.3563, allocations: 27.7 kB / 407.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003657/0.36, allocations: 2.861 MB / 410 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.36, allocations: 0 / 410 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002729/0.3628, allocations: 1.396 MB / 411.4 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.3631, allocations: 139.9 kB / 411.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.3632, allocations: 20 kB / 411.6 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005975/0.3638, allocations: 52.2 kB / 411.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.3639, allocations: 55.17 kB / 411.7 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-05/0.364, allocations: 23.14 kB / 411.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003952/0.3644, allocations: 357.2 kB / 412 MB, free: 7.559 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3644, allocations: 0 / 412 MB, free: 7.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000866/0.3653, allocations: 223.6 kB / 412.2 MB, free: 7.531 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.002911/0.3682, allocations: 1.959 MB / 414.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.3706, allocations: 1.004 MB / 415.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3706, allocations: 1.562 kB / 415.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.3721, allocations: 0.6445 MB / 415.9 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/0.3731, allocations: 143.4 kB / 416 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.3848, allocations: 6.903 MB / 422.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006331/0.3855, allocations: 0.9539 MB / 423.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004782/0.386, allocations: 81.05 kB / 423.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004146/0.3865, allocations: 295.3 kB / 424.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of SimCode: time 1.412e-06/0.3865, allocations: 0 / 424.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1061/0.4926, allocations: 17.54 MB / 441.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.33, allocations: 0 / 441.8 MB, free: 11.15 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)