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.001111/0.001111, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001155/0.001156, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.568/1.568, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001148, allocations: 43.39 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1094, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007783/0.1172, allocations: 6.054 MB / 356.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003687/0.121, allocations: 1.529 MB / 357.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.1221, allocations: 19.94 kB / 357.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007017/0.1229, allocations: 170.3 kB / 357.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.1241, allocations: 289.2 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.1253, allocations: 411.4 kB / 358.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002063/0.1274, allocations: 1.387 MB / 360 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006432/0.128, allocations: 433.2 kB / 360.4 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006683/0.1287, allocations: 0.4906 MB / 360.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.1293, allocations: 0.5641 MB / 361.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.1295, allocations: 136 kB / 361.6 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1298, allocations: 160 kB / 361.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.13, allocations: 283.1 kB / 362 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004956/0.1305, allocations: 0.5794 MB / 362.6 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.1318, allocations: 1.531 MB / 364.2 MB, free: 6.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1318, allocations: 4 kB / 364.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1318, allocations: 0 / 364.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.222e-05/0.1318, allocations: 0 / 364.2 MB, free: 6.258 MB / 302.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.002742/0.1346, allocations: 1.375 MB / 365.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1346, allocations: 11.97 kB / 365.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002125/0.1349, allocations: 139.6 kB / 365.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.1351, allocations: 111.6 kB / 365.8 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009058/0.136, allocations: 0.55 MB / 366.3 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.026e-05/0.1361, allocations: 62.38 kB / 366.4 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.1363, allocations: 100.3 kB / 366.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.1378, allocations: 0.8508 MB / 367.4 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1378, allocations: 11.88 kB / 367.4 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-05/0.1379, allocations: 36 kB / 367.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.138, allocations: 20 kB / 367.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.1395, allocations: 0.8511 MB / 368.3 MB, free: 2.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.186/0.3256, allocations: 3.225 MB / 371.5 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.3268, allocations: 0.6639 MB / 372.2 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006966/0.3275, allocations: 436.9 kB / 372.6 MB, free: 23.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.872e-05/0.3276, allocations: 14.41 kB / 372.6 MB, free: 23.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.3276, allocations: 44.56 kB / 372.6 MB, free: 23.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.517e-06/0.3276, allocations: 4.328 kB / 372.6 MB, free: 23.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004501/0.3322, allocations: 2.257 MB / 374.9 MB, free: 22.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.3322, allocations: 59.75 kB / 375 MB, free: 22.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000663/0.3329, allocations: 0.6088 MB / 375.6 MB, free: 22.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.332e-05/0.3329, allocations: 41.89 kB / 375.6 MB, free: 22.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000226/0.3332, allocations: 439 kB / 376 MB, free: 22.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.3333, allocations: 259.7 kB / 376.3 MB, free: 21.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.3336, allocations: 149.9 kB / 376.4 MB, free: 21.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3337, allocations: 394.2 kB / 376.8 MB, free: 21.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006607/0.3344, allocations: 321.1 kB / 377.1 MB, free: 21.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008332/0.3352, allocations: 479.1 kB / 377.6 MB, free: 21.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/0.3368, allocations: 0.7967 MB / 378.4 MB, free: 20.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.3369, allocations: 2.844 kB / 378.4 MB, free: 20.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002335/0.3392, allocations: 1.119 MB / 379.5 MB, free: 20.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3392, allocations: 6.719 kB / 379.5 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3393, allocations: 3.812 kB / 379.5 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005564/0.3398, allocations: 188.9 kB / 379.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009239/0.3408, allocations: 200.8 kB / 379.9 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003643/0.3444, allocations: 2.886 MB / 382.8 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008287/0.3453, allocations: 36.81 kB / 382.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.3454, allocations: 35.2 kB / 382.9 MB, free: 17.8 MB / 302.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.0003648/0.3457, allocations: 233.6 kB / 383.1 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.3459, allocations: 83.52 kB / 383.2 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.346, allocations: 91.27 kB / 383.3 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.346, allocations: 6.781 kB / 383.3 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.3461, allocations: 4.312 kB / 383.3 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.3461, allocations: 7.969 kB / 383.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.3472, allocations: 0.8849 MB / 384.2 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.3472, allocations: 0.75 kB / 384.2 MB, free: 17.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000749/0.348, allocations: 144.4 kB / 384.3 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005018/0.3485, allocations: 190.8 kB / 384.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.3485, allocations: 29.73 kB / 384.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003164/0.3517, allocations: 2.879 MB / 387.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3517, allocations: 2.375 kB / 387.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.3543, allocations: 1.437 MB / 388.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.3545, allocations: 146.5 kB / 389 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3546, allocations: 15 kB / 389 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006092/0.3552, allocations: 52.3 kB / 389.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.3554, allocations: 60.86 kB / 389.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.459e-05/0.3554, allocations: 23.03 kB / 389.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005305/0.356, allocations: 427.6 kB / 389.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.356, allocations: 3.938 kB / 389.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009203/0.3569, allocations: 241 kB / 389.8 MB, free: 13.61 MB / 302.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.002831/0.3598, allocations: 2.008 MB / 391.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002766/0.3625, allocations: 1.06 MB / 392.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.3626, allocations: 1.812 kB / 392.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.364, allocations: 0.6425 MB / 393.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009515/0.3649, allocations: 147.2 kB / 393.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/0.3758, allocations: 7.728 MB / 401.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.3763, allocations: 0.9852 MB / 402.4 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004624/0.3767, allocations: 93.45 kB / 402.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.3771, allocations: 319.3 kB / 402.8 MB, free: 4.43 MB / 302.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3771, allocations: 4 kB / 402.8 MB, free: 4.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04762/0.4247, allocations: 18.67 MB / 421.4 MB, free: 2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.71, allocations: 7.156 kB / 421.5 MB, free: 1.996 MB / 318.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)