Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001285/0.001285, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 199.9 kB / 18.74 MB, free: 4.312 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.366/1.366, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002101/0.002101, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2525, allocations: 50.55 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004243/0.2568, allocations: 2.722 MB / 411.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.2581, allocations: 0.7051 MB / 412.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2583, allocations: 11.94 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.2585, allocations: 47.56 kB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.2586, allocations: 71.28 kB / 412.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.2589, allocations: 111.8 kB / 412.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.2593, allocations: 362.6 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.2596, allocations: 92.69 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002638/0.2598, allocations: 143.5 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.2601, allocations: 163.3 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.955e-05/0.2601, allocations: 32 kB / 413.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.854e-05/0.2602, allocations: 35.94 kB / 413.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.379e-05/0.2603, allocations: 67.81 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.2604, allocations: 143.3 kB / 413.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000424/0.2609, allocations: 357.6 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2609, allocations: 4 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2609, allocations: 0 / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.2609, allocations: 0 / 414.1 MB, free: 12.3 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001464/0.2624, allocations: 0.6429 MB / 414.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.2624, allocations: 8.031 kB / 414.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.145e-05/0.2625, allocations: 58.73 kB / 414.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.2627, allocations: 44.73 kB / 414.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.2631, allocations: 260.9 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.2631, allocations: 24.69 kB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/0.2631, allocations: 16.38 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006736/0.2638, allocations: 302.8 kB / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.2638, allocations: 0 / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.2639, allocations: 11.98 kB / 415.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.2639, allocations: 4 kB / 415.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007843/0.2647, allocations: 273.5 kB / 415.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.2663, allocations: 1.062 MB / 416.8 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.2682, allocations: 442.2 kB / 417.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003943/0.2686, allocations: 144.8 kB / 417.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.2687, allocations: 0 / 417.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.2687, allocations: 38.56 kB / 417.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.2687, allocations: 0 / 417.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004791/0.2735, allocations: 1.022 MB / 418.4 MB, free: 7.738 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.2736, allocations: 51.41 kB / 418.5 MB, free: 7.676 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.2738, allocations: 221 kB / 418.7 MB, free: 7.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.2738, allocations: 25.7 kB / 418.7 MB, free: 7.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.274, allocations: 168.2 kB / 418.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.274, allocations: 47.62 kB / 418.9 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.2741, allocations: 41.64 kB / 419 MB, free: 7.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2743, allocations: 330.8 kB / 419.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.2746, allocations: 107.9 kB / 419.4 MB, free: 6.723 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.275, allocations: 129.5 kB / 419.5 MB, free: 6.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006839/0.2757, allocations: 228 kB / 419.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.2757, allocations: 3.938 kB / 419.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002797/0.2785, allocations: 0.6269 MB / 420.4 MB, free: 5.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.2785, allocations: 7.281 kB / 420.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2785, allocations: 0 / 420.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007485/0.2793, allocations: 220.6 kB / 420.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.2795, allocations: 35.86 kB / 420.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006781/0.2862, allocations: 2.755 MB / 423.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002822/0.2866, allocations: 39.86 kB / 423.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.2866, allocations: 15.92 kB / 423.5 MB, free: 2.52 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 15 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001541/0.2868, allocations: 129.8 kB / 423.6 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.2868, allocations: 19.91 kB / 423.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.807e-05/0.2869, allocations: 25.91 kB / 423.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2869, allocations: 3.984 kB / 423.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.2869, allocations: 0 / 423.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2869, allocations: 0 / 423.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004205/0.2873, allocations: 329.3 kB / 423.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2873, allocations: 0 / 423.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.2875, allocations: 31.92 kB / 424 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006545/0.2882, allocations: 220.7 kB / 424.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.2882, allocations: 7.984 kB / 424.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006575/0.2948, allocations: 2.735 MB / 426.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2948, allocations: 0 / 426.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003187/0.298, allocations: 0.8499 MB / 427.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.2981, allocations: 100.9 kB / 427.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.313e-05/0.2981, allocations: 3.984 kB / 427.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002819/0.2984, allocations: 36.14 kB / 427.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.2985, allocations: 11.97 kB / 427.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.2985, allocations: 7.984 kB / 427.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.2987, allocations: 160.5 kB / 428.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2987, allocations: 0 / 428.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004565/0.2992, allocations: 79.89 kB / 428.2 MB, free: 13.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.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 (12): * Single equations (assignments): 11 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00356/0.3027, allocations: 1.393 MB / 429.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.3043, allocations: 446.4 kB / 430 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3043, allocations: 0 / 430 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3054, allocations: 326.5 kB / 430.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.3058, allocations: 40.59 kB / 430.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008537/0.3143, allocations: 3.352 MB / 433.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.3147, allocations: 0.7476 MB / 434.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.981e-05/0.3148, allocations: 17.48 kB / 434.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.3149, allocations: 66.8 kB / 434.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.315, allocations: 4 kB / 434.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03553/0.3505, allocations: 7.362 MB / 441.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.31, allocations: 4.25 kB / 441.9 MB, free: 15.84 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv --start-time 0 --stop-time 0.4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00016 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)