Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_4_0_0_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.001835/0.001835, allocations: 107.9 kB / 17.06 MB, free: 5.82 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.001954/0.001954, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 51.91 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2706, allocations: 49.44 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007768/0.2784, allocations: 6.059 MB / 406.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003244/0.2817, allocations: 1.521 MB / 407.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005215/0.2823, allocations: 16 kB / 407.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004233/0.2827, allocations: 174.2 kB / 408 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007247/0.2835, allocations: 285.3 kB / 408.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009405/0.2845, allocations: 415.3 kB / 408.7 MB, free: 332 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001791/0.2863, allocations: 1.395 MB / 410.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006369/0.2869, allocations: 433.2 kB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006704/0.2876, allocations: 490.5 kB / 411 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000666/0.2883, allocations: 0.5835 MB / 411.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003065/0.2886, allocations: 132 kB / 411.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003107/0.2889, allocations: 168 kB / 411.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002461/0.2892, allocations: 271.2 kB / 412.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006115/0.2898, allocations: 0.5833 MB / 412.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001756/0.2915, allocations: 1.54 MB / 414.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2916, allocations: 3.938 kB / 414.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2916, allocations: 0 / 414.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.072e-05/0.2916, allocations: 0 / 414.3 MB, free: 10.72 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002803/0.2944, allocations: 1.409 MB / 415.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.2944, allocations: 8.031 kB / 415.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.2946, allocations: 143.6 kB / 415.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/0.2948, allocations: 120.2 kB / 415.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000922/0.2958, allocations: 0.5582 MB / 416.5 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.701e-05/0.2958, allocations: 66.38 kB / 416.6 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.296, allocations: 96.27 kB / 416.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.2976, allocations: 0.8508 MB / 417.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.2976, allocations: 0 / 417.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.491e-05/0.2977, allocations: 40 kB / 417.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.2977, allocations: 20 kB / 417.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.2995, allocations: 0.855 MB / 418.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00593/0.3054, allocations: 3.228 MB / 421.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.3067, allocations: 0.6683 MB / 422.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008407/0.3076, allocations: 436.8 kB / 422.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.43e-05/0.3076, allocations: 16.53 kB / 422.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.3077, allocations: 43.12 kB / 422.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.905e-06/0.3077, allocations: 0 / 422.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.005154/0.3129, allocations: 2.284 MB / 425.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.3129, allocations: 60.06 kB / 425.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008252/0.3138, allocations: 0.6057 MB / 425.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.657e-05/0.3139, allocations: 45.7 kB / 425.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.3142, allocations: 448.3 kB / 426.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002336/0.3145, allocations: 269.7 kB / 426.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.3147, allocations: 150.6 kB / 426.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.315, allocations: 386.7 kB / 427 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000741/0.3157, allocations: 321.9 kB / 427.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008193/0.3166, allocations: 472.5 kB / 427.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.3181, allocations: 0.8086 MB / 428.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3181, allocations: 0 / 428.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002368/0.3205, allocations: 1.119 MB / 429.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.661e-05/0.3206, allocations: 11.98 kB / 429.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3206, allocations: 4 kB / 429.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005783/0.3212, allocations: 187.2 kB / 429.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008714/0.322, allocations: 199.7 kB / 430.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004228/0.3263, allocations: 2.895 MB / 433 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006912/0.327, allocations: 36.17 kB / 433.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.3272, allocations: 35.98 kB / 433.1 MB, free: 7.301 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * 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,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004397/0.3276, allocations: 233.6 kB / 433.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.3278, allocations: 87.42 kB / 433.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001905/0.328, allocations: 95.25 kB / 433.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.328, allocations: 8 kB / 433.5 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.328, allocations: 4 kB / 433.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.328, allocations: 3.984 kB / 433.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.3292, allocations: 0.8886 MB / 434.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3292, allocations: 0 / 434.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/0.33, allocations: 143.8 kB / 434.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005602/0.3306, allocations: 192.5 kB / 434.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.363e-05/0.3307, allocations: 23.98 kB / 434.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00411/0.3348, allocations: 2.896 MB / 437.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3348, allocations: 0 / 437.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/0.3377, allocations: 1.428 MB / 439.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002405/0.3379, allocations: 148.6 kB / 439.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.3381, allocations: 12 kB / 439.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006042/0.3387, allocations: 59.95 kB / 439.3 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.3389, allocations: 52.58 kB / 439.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-05/0.339, allocations: 19.98 kB / 439.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005377/0.3395, allocations: 435.1 kB / 439.8 MB, free: 368 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3395, allocations: 0 / 439.8 MB, free: 368 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000805/0.3404, allocations: 243.9 kB / 440 MB, free: 124 kB / 350.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.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003354/0.3437, allocations: 2.008 MB / 442 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002553/0.3463, allocations: 1.044 MB / 443.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3463, allocations: 0.8125 kB / 443.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001505/0.3478, allocations: 0.6467 MB / 443.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.3489, allocations: 143.2 kB / 443.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/0.3618, allocations: 7.46 MB / 451.3 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006806/0.3626, allocations: 0.9853 MB / 452.3 MB, free: 3.531 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004151/0.363, allocations: 93.47 kB / 452.4 MB, free: 3.438 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/0.3634, allocations: 323.3 kB / 452.7 MB, free: 3.121 MB / 366.1 MB Notification: Performance of SimCode: time 2.334e-06/0.3635, allocations: 0 / 452.7 MB, free: 3.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0553/0.4188, allocations: 19.02 MB / 471.7 MB, free: 372 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.71, allocations: 4 kB / 471.7 MB, free: 368 kB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)