Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001149/0.001149, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 62.77 kB / 307.1 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1078, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005532/0.1133, allocations: 4.094 MB / 361.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.1157, allocations: 1.075 MB / 362.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004023/0.1162, allocations: 7.938 kB / 362.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002842/0.1165, allocations: 87.14 kB / 362.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005032/0.117, allocations: 178.5 kB / 363 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005993/0.1176, allocations: 227.6 kB / 363.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009391/0.1186, allocations: 0.8134 MB / 364.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003438/0.1189, allocations: 173.1 kB / 364.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005512/0.1195, allocations: 318.9 kB / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.12, allocations: 358.6 kB / 364.9 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.1201, allocations: 88 kB / 365 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.1203, allocations: 88 kB / 365.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.1205, allocations: 163.4 kB / 365.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003642/0.1209, allocations: 338.4 kB / 365.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008196/0.1217, allocations: 0.845 MB / 366.4 MB, free: 5.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1218, allocations: 0 / 366.4 MB, free: 5.102 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1218, allocations: 0 / 366.4 MB, free: 5.102 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.732e-05/0.1218, allocations: 0 / 366.4 MB, free: 5.102 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.002853/0.1246, allocations: 1.042 MB / 367.4 MB, free: 4.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.1247, allocations: 12.03 kB / 367.4 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.1248, allocations: 70.72 kB / 367.5 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.1251, allocations: 72.17 kB / 367.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/0.1257, allocations: 418 kB / 368 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.1258, allocations: 29.38 kB / 368 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.103e-05/0.1258, allocations: 36.38 kB / 368.1 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.1273, allocations: 0.6068 MB / 368.7 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.1273, allocations: 4 kB / 368.7 MB, free: 2.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.279e-05/0.1274, allocations: 12 kB / 368.7 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.1274, allocations: 12 kB / 368.7 MB, free: 2.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.1294, allocations: 0.6401 MB / 369.3 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1571/0.2866, allocations: 2.181 MB / 371.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004137/0.2907, allocations: 0.8649 MB / 372.4 MB, free: 19.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/0.2919, allocations: 395.1 kB / 372.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.292, allocations: 7.109 kB / 372.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.2933, allocations: 434.6 kB / 373.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.885e-06/0.2933, allocations: 1.078 kB / 373.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01455/0.3078, allocations: 2.392 MB / 375.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.3079, allocations: 83.66 kB / 375.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006375/0.3086, allocations: 416.2 kB / 376.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.073e-05/0.3086, allocations: 36.05 kB / 376.1 MB, free: 18.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.3088, allocations: 232.9 kB / 376.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.309, allocations: 132.4 kB / 376.5 MB, free: 18.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.3092, allocations: 74.69 kB / 376.5 MB, free: 18.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3093, allocations: 359 kB / 376.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009976/0.3103, allocations: 299 kB / 377.2 MB, free: 18.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009441/0.3112, allocations: 337.6 kB / 377.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/0.313, allocations: 0.5964 MB / 378.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.313, allocations: 0 / 378.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003552/0.3166, allocations: 0.9974 MB / 379.1 MB, free: 17.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.3166, allocations: 36.88 kB / 379.1 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3166, allocations: 4.578 kB / 379.1 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.3179, allocations: 434.2 kB / 379.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.3184, allocations: 97.33 kB / 379.7 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008252/0.3267, allocations: 3.81 MB / 383.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000777/0.3275, allocations: 101.8 kB / 383.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-05/0.3275, allocations: 14.5 kB / 383.6 MB, free: 14.88 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.0002621/0.3278, allocations: 167.9 kB / 383.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.78e-05/0.3279, allocations: 46.84 kB / 383.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.328, allocations: 62.14 kB / 383.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.328, allocations: 3.094 kB / 383.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3281, allocations: 1.781 kB / 383.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.3281, allocations: 6.469 kB / 383.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006806/0.3288, allocations: 0.6066 MB / 384.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3288, allocations: 0 / 384.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004827/0.3293, allocations: 90.77 kB / 384.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.3304, allocations: 433.6 kB / 385 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.486e-05/0.3305, allocations: 13.98 kB / 385 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007803/0.3383, allocations: 3.807 MB / 388.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3383, allocations: 0 / 388.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006023/0.3443, allocations: 1.502 MB / 390.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/0.3447, allocations: 179.9 kB / 390.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.333e-05/0.3448, allocations: 15.72 kB / 390.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006111/0.3454, allocations: 73.78 kB / 390.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.3456, allocations: 52.09 kB / 390.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.3456, allocations: 12.05 kB / 390.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003834/0.346, allocations: 296 kB / 390.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.346, allocations: 3.609 kB / 390.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007964/0.3468, allocations: 176.6 kB / 391.1 MB, free: 10.2 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.006223/0.353, allocations: 2.053 MB / 393.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002831/0.3559, allocations: 0.974 MB / 394.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3559, allocations: 0 / 394.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.3575, allocations: 0.5982 MB / 394.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005564/0.3581, allocations: 89.88 kB / 394.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.3716, allocations: 6.051 MB / 400.9 MB, free: 2.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.3719, allocations: 0.8356 MB / 401.7 MB, free: 2.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.3722, allocations: 51.38 kB / 401.8 MB, free: 2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/0.3724, allocations: 167.4 kB / 401.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3724, allocations: 0 / 401.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04282/0.4153, allocations: 18.32 MB / 420.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.92, allocations: 3.234 kB / 420.2 MB, free: 15.71 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)