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.001115/0.001115, allocations: 107.3 kB / 17.06 MB, free: 6.016 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.001066/0.001066, allocations: 188 kB / 18 MB, free: 5.102 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.335/1.335, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 51.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2757, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005222/0.281, allocations: 4.048 MB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.283, allocations: 1.021 MB / 405.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.2832, allocations: 11.94 kB / 405.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002325/0.2835, allocations: 83.14 kB / 405.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/0.2838, allocations: 186.5 kB / 405.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.2842, allocations: 223.6 kB / 405.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006845/0.2849, allocations: 0.8095 MB / 406.6 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.2852, allocations: 164.9 kB / 406.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003652/0.2856, allocations: 314.9 kB / 407.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000362/0.286, allocations: 358.7 kB / 407.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.614e-05/0.2861, allocations: 80 kB / 407.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.794e-05/0.2862, allocations: 84 kB / 407.6 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.2863, allocations: 163.4 kB / 407.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.2866, allocations: 334.4 kB / 408.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007233/0.2873, allocations: 0.8397 MB / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2873, allocations: 0 / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2873, allocations: 0 / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.2874, allocations: 0 / 408.9 MB, free: 92 kB / 318.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.002579/0.2899, allocations: 1.042 MB / 410 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.29, allocations: 8.031 kB / 410 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.923e-05/0.2901, allocations: 74.72 kB / 410 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.2902, allocations: 68.55 kB / 410.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006246/0.2909, allocations: 418.2 kB / 410.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.824e-05/0.2909, allocations: 29.38 kB / 410.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-05/0.291, allocations: 40.36 kB / 410.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.2924, allocations: 0.5991 MB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.2924, allocations: 0 / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.223e-05/0.2925, allocations: 16 kB / 411.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.2925, allocations: 11.98 kB / 411.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.2943, allocations: 0.6284 MB / 411.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.2978, allocations: 2.142 MB / 414 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003658/0.3015, allocations: 0.8276 MB / 414.8 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009993/0.3025, allocations: 402.5 kB / 415.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.3026, allocations: 8.312 kB / 415.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.3037, allocations: 426.6 kB / 415.6 MB, free: 9.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.973e-06/0.3037, allocations: 0 / 415.6 MB, free: 9.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0135/0.3172, allocations: 2.286 MB / 417.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.3173, allocations: 85.11 kB / 418 MB, free: 6.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/0.3179, allocations: 410 kB / 418.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.3179, allocations: 37.64 kB / 418.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/0.3181, allocations: 232.9 kB / 418.7 MB, free: 6.012 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.3182, allocations: 142.7 kB / 418.8 MB, free: 5.871 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.3184, allocations: 74.06 kB / 418.9 MB, free: 5.789 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3186, allocations: 362.7 kB / 419.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008898/0.3194, allocations: 284.6 kB / 419.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009016/0.3204, allocations: 338 kB / 419.8 MB, free: 4.812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001737/0.3221, allocations: 0.5796 MB / 420.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3221, allocations: 4 kB / 420.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003492/0.3256, allocations: 0.9746 MB / 421.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.921e-05/0.3257, allocations: 29.7 kB / 421.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3257, allocations: 3.984 kB / 421.4 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.3269, allocations: 396.5 kB / 421.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.3274, allocations: 95.86 kB / 421.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008132/0.3355, allocations: 3.664 MB / 425.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007319/0.3363, allocations: 91.89 kB / 425.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.3363, allocations: 15.98 kB / 425.7 MB, free: 14.79 MB / 350.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.0002755/0.3366, allocations: 185.7 kB / 425.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.424e-05/0.3367, allocations: 47.67 kB / 425.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.3368, allocations: 56.45 kB / 426 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3368, allocations: 4 kB / 426 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3368, allocations: 0 / 426 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3368, allocations: 0 / 426 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006783/0.3375, allocations: 0.6221 MB / 426.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3375, allocations: 0 / 426.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/0.338, allocations: 87.84 kB / 426.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/0.3391, allocations: 396.6 kB / 427.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.3391, allocations: 15.98 kB / 427.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007797/0.347, allocations: 3.655 MB / 430.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.347, allocations: 0 / 430.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005601/0.3526, allocations: 1.449 MB / 432.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.3529, allocations: 188.6 kB / 432.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.827e-05/0.353, allocations: 11.94 kB / 432.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005755/0.3535, allocations: 71.91 kB / 432.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.3537, allocations: 47.94 kB / 432.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/0.3537, allocations: 15.98 kB / 432.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003114/0.3541, allocations: 291.2 kB / 432.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3541, allocations: 4 kB / 432.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005852/0.3547, allocations: 171.8 kB / 433 MB, free: 7.27 MB / 350.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.00578/0.3604, allocations: 2.022 MB / 435 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002597/0.3631, allocations: 0.9229 MB / 435.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.3631, allocations: 0 / 435.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.3646, allocations: 0.5645 MB / 436.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.3651, allocations: 93.59 kB / 436.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.3795, allocations: 5.815 MB / 442.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004576/0.38, allocations: 0.8356 MB / 443.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002794/0.3803, allocations: 43.39 kB / 443.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/0.3806, allocations: 167.4 kB / 443.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3806, allocations: 0 / 443.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04062/0.4212, allocations: 18.3 MB / 461.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.17, allocations: 15.92 kB / 461.7 MB, free: 10.53 MB / 382.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)