Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_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.00161/0.00161, allocations: 113.8 kB / 17.72 MB, free: 5.418 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.001982/0.001982, allocations: 183.1 kB / 18.65 MB, free: 4.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 55.91 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1347, allocations: 46.61 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006648/0.1414, allocations: 3.89 MB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.144, allocations: 1.033 MB / 379.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000291/0.1443, allocations: 11.94 kB / 379.6 MB, free: 124 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003004/0.1447, allocations: 79.2 kB / 379.6 MB, free: 44 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2875/0.4322, allocations: 163.9 kB / 379.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007616/0.433, allocations: 201.5 kB / 380 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.434, allocations: 0.7714 MB / 380.8 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003464/0.4344, allocations: 175.3 kB / 380.9 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004031/0.4348, allocations: 299 kB / 381.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000407/0.4352, allocations: 328 kB / 381.6 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.4354, allocations: 83.92 kB / 381.6 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.4356, allocations: 77.28 kB / 381.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.4358, allocations: 152.7 kB / 381.9 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003014/0.4361, allocations: 309.8 kB / 382.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.4373, allocations: 0.8058 MB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.223e-05/0.4373, allocations: 1.094 kB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.4373, allocations: 0 / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.4373, allocations: 0 / 383 MB, free: 8.906 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002574/0.4399, allocations: 0.994 MB / 384 MB, free: 8.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.44, allocations: 9.531 kB / 384 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.4401, allocations: 75.73 kB / 384.1 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.4403, allocations: 61.78 kB / 384.1 MB, free: 8.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.4409, allocations: 403.3 kB / 384.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.441, allocations: 29.59 kB / 384.5 MB, free: 7.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-05/0.4411, allocations: 37.05 kB / 384.6 MB, free: 7.953 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.4426, allocations: 0.5642 MB / 385.1 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.4426, allocations: 0.7969 kB / 385.1 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.4427, allocations: 15.38 kB / 385.2 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.4427, allocations: 9.25 kB / 385.2 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.4446, allocations: 0.5742 MB / 385.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.4483, allocations: 2.009 MB / 387.7 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/0.4522, allocations: 0.7903 MB / 388.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.4532, allocations: 361.8 kB / 388.9 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.704e-05/0.4532, allocations: 9.688 kB / 388.9 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.4544, allocations: 409.9 kB / 389.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.274e-06/0.4544, allocations: 0 / 389.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009852/0.4642, allocations: 1.788 MB / 391.1 MB, free: 5.223 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.4644, allocations: 86.91 kB / 391.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005145/0.4649, allocations: 382.5 kB / 391.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/0.465, allocations: 33.12 kB / 391.6 MB, free: 4.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.4651, allocations: 233.3 kB / 391.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.4653, allocations: 133.3 kB / 391.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.4655, allocations: 70.88 kB / 392 MB, free: 4.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.4656, allocations: 353 kB / 392.3 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009468/0.4665, allocations: 267.6 kB / 392.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009329/0.4675, allocations: 324.1 kB / 392.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.4692, allocations: 0.5387 MB / 393.5 MB, free: 3.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.4692, allocations: 1.219 kB / 393.5 MB, free: 3.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004795/0.474, allocations: 1.058 MB / 394.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.4741, allocations: 35.45 kB / 394.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.4741, allocations: 0.7969 kB / 394.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.4754, allocations: 394.8 kB / 394.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/0.4759, allocations: 79.3 kB / 395 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008028/0.484, allocations: 3.684 MB / 398.7 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008011/0.4848, allocations: 85.62 kB / 398.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/0.4849, allocations: 16.48 kB / 398.8 MB, free: 0.8711 MB / 318.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0003094/0.4852, allocations: 173.1 kB / 399 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.297e-05/0.4853, allocations: 53.3 kB / 399 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.4854, allocations: 52.92 kB / 399.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4854, allocations: 6.75 kB / 399.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4854, allocations: 1.375 kB / 399.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.4854, allocations: 5.594 kB / 399.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007004/0.4861, allocations: 0.587 MB / 399.7 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4861, allocations: 0 / 399.7 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/0.4865, allocations: 78.77 kB / 399.8 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/0.4877, allocations: 396.3 kB / 400.1 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.4878, allocations: 10.02 kB / 400.2 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00926/0.497, allocations: 3.662 MB / 403.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4971, allocations: 0 / 403.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005006/0.5021, allocations: 1.271 MB / 405.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004057/0.5025, allocations: 172.9 kB / 405.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.308e-05/0.5026, allocations: 14.88 kB / 405.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005663/0.5032, allocations: 63.95 kB / 405.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.5034, allocations: 47.31 kB / 405.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-05/0.5034, allocations: 10.66 kB / 405.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003729/0.5038, allocations: 272.7 kB / 405.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5038, allocations: 0 / 405.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007603/0.5046, allocations: 170.6 kB / 405.8 MB, free: 12.09 MB / 334.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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.005287/0.5099, allocations: 1.803 MB / 407.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002959/0.5128, allocations: 0.8854 MB / 408.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.5129, allocations: 0 / 408.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001549/0.5144, allocations: 0.5441 MB / 409.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006565/0.5151, allocations: 83.69 kB / 409.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.5293, allocations: 5.455 MB / 414.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006087/0.53, allocations: 0.8316 MB / 415.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002711/0.5303, allocations: 43.27 kB / 415.5 MB, free: 5.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.5305, allocations: 155.4 kB / 415.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5306, allocations: 0 / 415.6 MB, free: 4.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05496/0.5855, allocations: 17.5 MB / 433.1 MB, free: 3.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/14.09, allocations: 12.05 kB / 433.1 MB, free: 3.387 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)