Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",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.001183/0.001183, allocations: 110.7 kB / 16.92 MB, free: 5.766 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.001268/0.001268, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.366/1.366, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 46.22 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1147, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005295/0.1201, allocations: 4.046 MB / 354.2 MB, free: 260 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.1221, allocations: 1.005 MB / 355.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003986/0.1225, allocations: 11.94 kB / 355.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.1228, allocations: 83.14 kB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004589/0.1233, allocations: 182.5 kB / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.1238, allocations: 211.7 kB / 355.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007545/0.1246, allocations: 0.8094 MB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/0.1249, allocations: 189 kB / 356.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/0.1252, allocations: 311 kB / 357 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.1256, allocations: 350.7 kB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.1257, allocations: 84 kB / 357.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.1258, allocations: 80 kB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.126, allocations: 167.4 kB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002862/0.1263, allocations: 330.5 kB / 358 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006533/0.1269, allocations: 0.8332 MB / 358.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1269, allocations: 0 / 358.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.127, allocations: 4 kB / 358.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.465e-06/0.127, allocations: 0 / 358.8 MB, free: 11.62 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002541/0.1295, allocations: 1.022 MB / 359.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.1296, allocations: 12.03 kB / 359.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.286e-05/0.1297, allocations: 74.7 kB / 359.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.1298, allocations: 60.28 kB / 360 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.1303, allocations: 409.9 kB / 360.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.1303, allocations: 29.38 kB / 360.4 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.552e-05/0.1304, allocations: 40.28 kB / 360.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.1318, allocations: 0.5991 MB / 361 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.1318, allocations: 0 / 361 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.613e-05/0.1319, allocations: 16 kB / 361.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.1319, allocations: 12 kB / 361.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.1338, allocations: 0.6206 MB / 361.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003606/0.1374, allocations: 2.157 MB / 363.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003848/0.1413, allocations: 0.8387 MB / 364.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.1424, allocations: 397.2 kB / 365.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.1424, allocations: 4.328 kB / 365.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.1436, allocations: 426.3 kB / 365.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.884e-06/0.1436, allocations: 0 / 365.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01423/0.1578, allocations: 2.286 MB / 367.8 MB, free: 2.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.1579, allocations: 85.11 kB / 367.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.1584, allocations: 410 kB / 368.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.1585, allocations: 33.7 kB / 368.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.1586, allocations: 236.6 kB / 368.5 MB, free: 1.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.1588, allocations: 134 kB / 368.7 MB, free: 1.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.1589, allocations: 70.06 kB / 368.7 MB, free: 1.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1591, allocations: 362.7 kB / 369.1 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009396/0.16, allocations: 284.6 kB / 369.4 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009484/0.161, allocations: 334.1 kB / 369.7 MB, free: 404 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1563/0.3173, allocations: 0.5807 MB / 370.3 MB, free: 25.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3173, allocations: 0 / 370.3 MB, free: 25.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003725/0.3211, allocations: 0.9745 MB / 371.2 MB, free: 25.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.3211, allocations: 33.16 kB / 371.3 MB, free: 25.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3211, allocations: 1.188 kB / 371.3 MB, free: 25.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.3224, allocations: 396.1 kB / 371.7 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.3229, allocations: 90.97 kB / 371.8 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008004/0.3309, allocations: 3.679 MB / 375.4 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006963/0.3316, allocations: 88.56 kB / 375.5 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.541e-05/0.3317, allocations: 18.56 kB / 375.5 MB, free: 23.37 MB / 302.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: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002214/0.3319, allocations: 175.1 kB / 375.7 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.846e-05/0.332, allocations: 47.2 kB / 375.8 MB, free: 23.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.3321, allocations: 56.97 kB / 375.8 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3321, allocations: 4.125 kB / 375.8 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3321, allocations: 1.375 kB / 375.8 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3321, allocations: 2.344 kB / 375.8 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006125/0.3327, allocations: 0.6106 MB / 376.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3328, allocations: 3.828 kB / 376.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005145/0.3333, allocations: 86.48 kB / 376.5 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.3344, allocations: 397.2 kB / 376.9 MB, free: 22.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.3344, allocations: 7.266 kB / 376.9 MB, free: 22.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007585/0.342, allocations: 3.665 MB / 380.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.342, allocations: 1.25 kB / 380.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005723/0.3478, allocations: 1.453 MB / 382 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.348, allocations: 180.6 kB / 382.2 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.932e-05/0.3481, allocations: 8.125 kB / 382.2 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000595/0.3487, allocations: 77.88 kB / 382.3 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.3489, allocations: 49.3 kB / 382.3 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.502e-05/0.349, allocations: 14.2 kB / 382.4 MB, free: 19.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003941/0.3494, allocations: 290.1 kB / 382.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3494, allocations: 0 / 382.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007256/0.3501, allocations: 175.8 kB / 382.8 MB, free: 19.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006152/0.3563, allocations: 2.013 MB / 384.8 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002684/0.359, allocations: 0.9345 MB / 385.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.359, allocations: 1.094 kB / 385.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.3604, allocations: 0.5655 MB / 386.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004876/0.3609, allocations: 84.62 kB / 386.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.375, allocations: 5.91 MB / 392.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.3752, allocations: 0.8378 MB / 393.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002469/0.3755, allocations: 45.27 kB / 393.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.3757, allocations: 164.4 kB / 393.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3757, allocations: 0 / 393.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04059/0.4163, allocations: 18.07 MB / 411.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.41, allocations: 8.562 kB / 411.4 MB, free: 12.59 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-12 --interface-type ModelExchange --solver CVode --output-interval 5e-07 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)