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.001183/0.001182, allocations: 118.8 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.001391/0.001391, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2867, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004825/0.2915, allocations: 4.099 MB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.2935, allocations: 1.059 MB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.2937, allocations: 8 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.294, allocations: 87.12 kB / 414 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003344/0.2944, allocations: 194.4 kB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.2949, allocations: 227.6 kB / 414.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007696/0.2957, allocations: 0.8173 MB / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004214/0.2961, allocations: 168.9 kB / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004433/0.2966, allocations: 326.9 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.297, allocations: 362.6 kB / 416.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.735e-05/0.2971, allocations: 84 kB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.2972, allocations: 84 kB / 416.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.2974, allocations: 163.4 kB / 416.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.2977, allocations: 338.5 kB / 416.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008404/0.2985, allocations: 0.863 MB / 417.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2985, allocations: 0 / 417.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2985, allocations: 3.938 kB / 417.6 MB, free: 8.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.2985, allocations: 0 / 417.6 MB, free: 8.668 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002724/0.3013, allocations: 1.057 MB / 418.7 MB, free: 7.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.3013, allocations: 8.031 kB / 418.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.3014, allocations: 74.72 kB / 418.7 MB, free: 7.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002281/0.3017, allocations: 72.55 kB / 418.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000686/0.3024, allocations: 430.2 kB / 419.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.3024, allocations: 29.38 kB / 419.3 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.009e-05/0.3025, allocations: 40.36 kB / 419.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.304, allocations: 0.603 MB / 419.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.3041, allocations: 4 kB / 419.9 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.607e-05/0.3041, allocations: 19.98 kB / 419.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3041, allocations: 8 kB / 419.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.3061, allocations: 0.6323 MB / 420.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003732/0.3098, allocations: 2.173 MB / 422.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003793/0.3136, allocations: 0.8543 MB / 423.6 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.3147, allocations: 401.3 kB / 424 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.3147, allocations: 4.328 kB / 424 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001162/0.3159, allocations: 434.6 kB / 424.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.405e-06/0.3159, allocations: 0 / 424.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.01453/0.3304, allocations: 2.395 MB / 426.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.3306, allocations: 93.08 kB / 426.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006344/0.3313, allocations: 413.9 kB / 427.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.6e-05/0.3313, allocations: 33.7 kB / 427.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.3316, allocations: 240.8 kB / 427.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3318, allocations: 142.8 kB / 427.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.3319, allocations: 66.06 kB / 427.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3321, allocations: 362.7 kB / 428.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009199/0.3331, allocations: 300.6 kB / 428.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009876/0.3341, allocations: 334.1 kB / 428.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001902/0.336, allocations: 0.599 MB / 429.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.336, allocations: 0 / 429.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003908/0.3399, allocations: 1.01 MB / 430.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.763e-05/0.34, allocations: 33.64 kB / 430.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.34, allocations: 0 / 430.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/0.3413, allocations: 432.5 kB / 430.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/0.3418, allocations: 87.84 kB / 430.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008376/0.3502, allocations: 3.824 MB / 434.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007135/0.351, allocations: 95.7 kB / 434.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.351, allocations: 11.98 kB / 434.8 MB, free: 6.922 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.0002519/0.3513, allocations: 177.7 kB / 435 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.998e-05/0.3514, allocations: 51.67 kB / 435.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.3515, allocations: 56.52 kB / 435.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3515, allocations: 4 kB / 435.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3515, allocations: 0 / 435.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3515, allocations: 8 kB / 435.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006643/0.3522, allocations: 0.6222 MB / 435.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.3522, allocations: 0 / 435.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004822/0.3527, allocations: 76.02 kB / 435.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.3539, allocations: 440.4 kB / 436.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.3539, allocations: 8 kB / 436.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008119/0.362, allocations: 3.812 MB / 440.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.362, allocations: 4 kB / 440.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005856/0.3679, allocations: 1.502 MB / 441.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.3682, allocations: 184.7 kB / 441.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.3683, allocations: 11.94 kB / 441.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005826/0.3689, allocations: 71.91 kB / 441.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.369, allocations: 47.94 kB / 441.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-05/0.3691, allocations: 15.98 kB / 441.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003176/0.3694, allocations: 291.2 kB / 442.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3694, allocations: 0 / 442.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006119/0.37, allocations: 179.8 kB / 442.4 MB, free: 15.15 MB / 366.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.006128/0.3762, allocations: 2.057 MB / 444.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.3791, allocations: 0.9659 MB / 445.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3791, allocations: 0 / 445.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001612/0.3807, allocations: 0.5996 MB / 446 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.3813, allocations: 97.58 kB / 446.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.3961, allocations: 5.966 MB / 452 MB, free: 5.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.3965, allocations: 0.8433 MB / 452.9 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002517/0.3968, allocations: 47.38 kB / 452.9 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.3971, allocations: 163.4 kB / 453.1 MB, free: 4.207 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3971, allocations: 4 kB / 453.1 MB, free: 4.203 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04818/0.4453, allocations: 18.54 MB / 471.6 MB, free: 1.875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.39, allocations: 4.828 kB / 471.6 MB, free: 1.871 MB / 382.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)