Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00177/0.00177, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002051/0.002051, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.478/1.478, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 67.89 kB / 358.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2637, allocations: 50.55 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004691/0.2684, allocations: 2.952 MB / 412.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.2699, allocations: 0.7479 MB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.2702, allocations: 4 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.2704, allocations: 51.5 kB / 412.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.2706, allocations: 107.2 kB / 413 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.2709, allocations: 119.8 kB / 413.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004945/0.2714, allocations: 418.4 kB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.2717, allocations: 127.2 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.2719, allocations: 155.4 kB / 413.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.2721, allocations: 171.2 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.252e-05/0.2722, allocations: 40 kB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.507e-05/0.2722, allocations: 40 kB / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-05/0.2723, allocations: 83.69 kB / 414.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.2725, allocations: 175.2 kB / 414.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005328/0.273, allocations: 453.2 kB / 414.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2731, allocations: 0 / 414.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2731, allocations: 0 / 414.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.2731, allocations: 4 kB / 414.7 MB, free: 11.74 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001438/0.2745, allocations: 0.6884 MB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.2746, allocations: 12.03 kB / 415.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.192e-05/0.2747, allocations: 58.73 kB / 415.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.2747, allocations: 36.7 kB / 415.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004692/0.2752, allocations: 303.7 kB / 415.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.2753, allocations: 20.94 kB / 415.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.859e-05/0.2753, allocations: 24.38 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007397/0.2761, allocations: 331.8 kB / 416.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2761, allocations: 0 / 416.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.2761, allocations: 12 kB / 416.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.2761, allocations: 7.984 kB / 416.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008009/0.2769, allocations: 290 kB / 416.5 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.2788, allocations: 1.139 MB / 417.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008367/0.2797, allocations: 246.6 kB / 417.9 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003334/0.28, allocations: 104.8 kB / 418 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.28, allocations: 0 / 418 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004729/0.2805, allocations: 185.8 kB / 418.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.2805, allocations: 0 / 418.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002356/0.2829, allocations: 0.6786 MB / 418.8 MB, free: 7.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.283, allocations: 106.8 kB / 418.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.2833, allocations: 282.8 kB / 419.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.2833, allocations: 33.7 kB / 419.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.2835, allocations: 211.9 kB / 419.4 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.2835, allocations: 43.69 kB / 419.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.761e-05/0.2836, allocations: 53.89 kB / 419.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2838, allocations: 334.8 kB / 419.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.2841, allocations: 100.2 kB / 420 MB, free: 6.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004327/0.2846, allocations: 229.2 kB / 420.2 MB, free: 5.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007445/0.2853, allocations: 319.9 kB / 420.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2853, allocations: 0 / 420.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001283/0.2866, allocations: 479.8 kB / 421 MB, free: 5.074 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/0.2867, allocations: 33.7 kB / 421 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2867, allocations: 3.938 kB / 421 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003753/0.2871, allocations: 88.86 kB / 421.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.2873, allocations: 51.89 kB / 421.1 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.2903, allocations: 2.064 MB / 423.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003347/0.2907, allocations: 59.89 kB / 423.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.2907, allocations: 19.94 kB / 423.3 MB, free: 2.609 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001772/0.2909, allocations: 156.9 kB / 423.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.2909, allocations: 23.86 kB / 423.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.587e-05/0.291, allocations: 25.83 kB / 423.5 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.291, allocations: 4 kB / 423.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.291, allocations: 0 / 423.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.291, allocations: 0 / 423.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003356/0.2914, allocations: 333.3 kB / 423.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2914, allocations: 0 / 423.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.2915, allocations: 23.97 kB / 423.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002921/0.2918, allocations: 76.81 kB / 423.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.2919, allocations: 8.109 kB / 423.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002691/0.2946, allocations: 1.974 MB / 425.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2946, allocations: 0 / 425.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.2957, allocations: 380.6 kB / 426.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.186e-05/0.2958, allocations: 108.9 kB / 426.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.2959, allocations: 3.938 kB / 426.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.2961, allocations: 31.97 kB / 426.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.487e-05/0.2962, allocations: 23.91 kB / 426.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.2963, allocations: 8 kB / 426.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002256/0.2965, allocations: 202 kB / 426.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2965, allocations: 3.938 kB / 426.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004134/0.2969, allocations: 75.89 kB / 426.7 MB, free: 14.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001496/0.2984, allocations: 0.9019 MB / 427.6 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.2998, allocations: 0.4978 MB / 428.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.2998, allocations: 4 kB / 428.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005029/0.3003, allocations: 239.1 kB / 428.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.3007, allocations: 54.09 kB / 428.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007591/0.3083, allocations: 3.588 MB / 432 MB, free: 9.422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004127/0.3087, allocations: 0.7522 MB / 432.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001381/0.3088, allocations: 26.28 kB / 432.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.309, allocations: 87.41 kB / 432.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.309, allocations: 0 / 432.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.3416, allocations: 6.867 MB / 439.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.9, allocations: 17.64 kB / 439.7 MB, free: 1.879 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1)