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.001222/0.001222, allocations: 113.4 kB / 17.06 MB, free: 5.996 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.001162/0.001162, allocations: 200 kB / 18.01 MB, free: 5.066 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.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009765/0.0009765, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.276, allocations: 49.43 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.0121/0.2882, allocations: 6.07 MB / 406.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005626/0.2939, allocations: 1.517 MB / 407.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008427/0.2948, allocations: 16 kB / 407.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007088/0.2955, allocations: 174.2 kB / 408 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.2968, allocations: 293.3 kB / 408.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.2982, allocations: 419.3 kB / 408.7 MB, free: 332 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002276/0.3005, allocations: 1.391 MB / 410.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009481/0.3015, allocations: 425.2 kB / 410.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009415/0.3025, allocations: 0.4906 MB / 411 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009878/0.3035, allocations: 0.568 MB / 411.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000252/0.3038, allocations: 136 kB / 411.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004067/0.3042, allocations: 168 kB / 411.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003226/0.3045, allocations: 275.2 kB / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007771/0.3053, allocations: 0.5871 MB / 412.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.3074, allocations: 1.536 MB / 414.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.3075, allocations: 3.984 kB / 414.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3075, allocations: 0 / 414.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.3075, allocations: 0 / 414.3 MB, free: 10.73 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.00382/0.3113, allocations: 1.416 MB / 415.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.3114, allocations: 11.89 kB / 415.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002505/0.3117, allocations: 139.6 kB / 415.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003012/0.312, allocations: 116.2 kB / 415.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.3132, allocations: 0.5582 MB / 416.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.516e-05/0.3133, allocations: 70.31 kB / 416.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002219/0.3135, allocations: 96.31 kB / 416.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002573/0.3161, allocations: 0.8547 MB / 417.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/0.3161, allocations: 4 kB / 417.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000145/0.3163, allocations: 36 kB / 417.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.3163, allocations: 20 kB / 417.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002814/0.3191, allocations: 0.8512 MB / 418.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008815/0.328, allocations: 3.22 MB / 421.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.3294, allocations: 0.6839 MB / 422.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006657/0.33, allocations: 427.1 kB / 422.8 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.782e-05/0.3301, allocations: 16.55 kB / 422.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.3301, allocations: 47.11 kB / 422.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.344e-06/0.3302, allocations: 0 / 422.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004418/0.3346, allocations: 2.279 MB / 425.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.3346, allocations: 64.05 kB / 425.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006628/0.3353, allocations: 0.6018 MB / 425.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.714e-05/0.3354, allocations: 45.7 kB / 425.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.3357, allocations: 456.2 kB / 426.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.3359, allocations: 269.7 kB / 426.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/0.3361, allocations: 150.6 kB / 426.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3363, allocations: 382.8 kB / 427 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006159/0.3369, allocations: 325.9 kB / 427.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007211/0.3377, allocations: 472.5 kB / 427.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.339, allocations: 0.8047 MB / 428.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.339, allocations: 0 / 428.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002137/0.3412, allocations: 1.122 MB / 429.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.3412, allocations: 10.66 kB / 429.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3412, allocations: 4 kB / 429.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005403/0.3418, allocations: 184.8 kB / 429.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008454/0.3426, allocations: 195.8 kB / 430.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003595/0.3462, allocations: 2.885 MB / 433 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006388/0.3469, allocations: 40.03 kB / 433.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.867e-05/0.347, allocations: 35.98 kB / 433.1 MB, free: 7.312 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.0003521/0.3473, allocations: 233.6 kB / 433.3 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.3475, allocations: 87.42 kB / 433.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.3477, allocations: 95.27 kB / 433.5 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3477, allocations: 4 kB / 433.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.3477, allocations: 8 kB / 433.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3477, allocations: 3.984 kB / 433.5 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.3488, allocations: 0.8925 MB / 434.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3488, allocations: 0 / 434.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007138/0.3495, allocations: 143.8 kB / 434.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004871/0.35, allocations: 191.2 kB / 434.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.838e-05/0.3501, allocations: 23.98 kB / 434.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003465/0.3536, allocations: 2.896 MB / 437.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3536, allocations: 0 / 437.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.3561, allocations: 1.432 MB / 439.1 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.3563, allocations: 148.6 kB / 439.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.3564, allocations: 16 kB / 439.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006212/0.3571, allocations: 56.2 kB / 439.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.3572, allocations: 52.58 kB / 439.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-05/0.3572, allocations: 27.98 kB / 439.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004697/0.3577, allocations: 423.1 kB / 439.8 MB, free: 384 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3577, allocations: 4 kB / 439.8 MB, free: 380 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000799/0.3585, allocations: 247.9 kB / 440 MB, free: 132 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.002892/0.3614, allocations: 2.004 MB / 442 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002197/0.3636, allocations: 1.052 MB / 443.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3637, allocations: 0.8125 kB / 443.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.365, allocations: 0.6387 MB / 443.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007705/0.3658, allocations: 147 kB / 443.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.3777, allocations: 7.464 MB / 451.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/0.3783, allocations: 0.9814 MB / 452.3 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003961/0.3788, allocations: 93.47 kB / 452.4 MB, free: 3.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004355/0.3792, allocations: 323.3 kB / 452.7 MB, free: 3.129 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3792, allocations: 0 / 452.7 MB, free: 3.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04612/0.4253, allocations: 19.01 MB / 471.7 MB, free: 384 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.54, allocations: 7.5 kB / 471.7 MB, free: 380 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)