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.001591/0.001592, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.002046/0.002046, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.727/1.727, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001372/0.001372, allocations: 55.94 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1234, allocations: 46.61 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007382/0.1308, allocations: 3.894 MB / 378.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003268/0.1342, allocations: 1.033 MB / 379.6 MB, free: 136 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004873/0.1347, allocations: 12 kB / 379.6 MB, free: 124 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003319/0.1352, allocations: 79.2 kB / 379.7 MB, free: 44 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2878/0.423, allocations: 176.2 kB / 379.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009659/0.424, allocations: 202 kB / 380 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.4253, allocations: 0.767 MB / 380.8 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004437/0.4257, allocations: 171.5 kB / 381 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008171/0.4266, allocations: 294.7 kB / 381.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006948/0.4273, allocations: 334.3 kB / 381.6 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.4274, allocations: 80 kB / 381.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.4277, allocations: 77.06 kB / 381.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.4279, allocations: 154.7 kB / 381.9 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005797/0.4285, allocations: 307.3 kB / 382.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00147/0.4299, allocations: 0.806 MB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.43, allocations: 4.938 kB / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.43, allocations: 0 / 383 MB, free: 8.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.43, 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.003106/0.4331, allocations: 0.9933 MB / 384 MB, free: 8.316 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.4332, allocations: 10.84 kB / 384 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001153/0.4333, allocations: 72.47 kB / 384.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.4335, allocations: 60.72 kB / 384.1 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008649/0.4344, allocations: 408.7 kB / 384.5 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.4344, allocations: 29.33 kB / 384.6 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.735e-05/0.4345, allocations: 40.47 kB / 384.6 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.4362, allocations: 0.5636 MB / 385.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.4363, allocations: 1.094 kB / 385.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.887e-05/0.4363, allocations: 15.47 kB / 385.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.4364, allocations: 8.469 kB / 385.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002086/0.4384, allocations: 0.5742 MB / 385.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004857/0.4433, allocations: 2.003 MB / 387.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003997/0.4473, allocations: 0.7865 MB / 388.5 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.4486, allocations: 367 kB / 388.9 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.4486, allocations: 6.719 kB / 388.9 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001213/0.4498, allocations: 407.9 kB / 389.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.214e-06/0.4498, allocations: 0 / 389.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.0111/0.461, allocations: 1.793 MB / 391.1 MB, free: 5.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.4611, allocations: 86.08 kB / 391.2 MB, free: 5.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007349/0.4618, allocations: 383.4 kB / 391.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.445e-05/0.4619, allocations: 40.48 kB / 391.6 MB, free: 4.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.4622, allocations: 228.4 kB / 391.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.4624, allocations: 131.2 kB / 392 MB, free: 4.609 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002487/0.4626, allocations: 74.84 kB / 392 MB, free: 4.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.4628, allocations: 353.3 kB / 392.4 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.4638, allocations: 267.7 kB / 392.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009812/0.4648, allocations: 321.5 kB / 392.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.4669, allocations: 0.5388 MB / 393.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.467, allocations: 0 / 393.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005318/0.4723, allocations: 1.055 MB / 394.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.4724, allocations: 33.86 kB / 394.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4724, allocations: 5.125 kB / 394.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.474, allocations: 391 kB / 395 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005818/0.4746, allocations: 87.73 kB / 395 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00887/0.4835, allocations: 3.68 MB / 398.7 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008858/0.4844, allocations: 81.61 kB / 398.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-05/0.4845, allocations: 15.73 kB / 398.8 MB, free: 0.8789 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.0003197/0.4848, allocations: 177.6 kB / 399 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.094e-05/0.4849, allocations: 55.28 kB / 399 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.485, allocations: 56.91 kB / 399.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.485, allocations: 4.125 kB / 399.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4851, allocations: 1.375 kB / 399.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.4851, allocations: 2.109 kB / 399.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008384/0.4859, allocations: 0.5846 MB / 399.7 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.4859, allocations: 0 / 399.7 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004819/0.4864, allocations: 86.83 kB / 399.8 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/0.4876, allocations: 388.6 kB / 400.2 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.496e-05/0.4877, allocations: 14.27 kB / 400.2 MB, free: 0 / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009133/0.4968, allocations: 3.659 MB / 403.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4969, allocations: 0 / 403.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004986/0.5019, allocations: 1.268 MB / 405.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003604/0.5023, allocations: 171.8 kB / 405.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.5024, allocations: 14.73 kB / 405.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005927/0.503, allocations: 64 kB / 405.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.5032, allocations: 47.33 kB / 405.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.5033, allocations: 12.69 kB / 405.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000409/0.5037, allocations: 277.1 kB / 405.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5037, allocations: 0 / 405.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000875/0.5046, allocations: 170.8 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.005337/0.5099, allocations: 1.806 MB / 407.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002978/0.5129, allocations: 0.8809 MB / 408.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.513, allocations: 8 kB / 408.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.5146, allocations: 0.5358 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.0007237/0.5153, allocations: 83.45 kB / 409.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.5299, allocations: 5.454 MB / 414.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.5305, allocations: 0.8316 MB / 415.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002961/0.5308, allocations: 43.27 kB / 415.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.5311, allocations: 155.4 kB / 415.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5311, allocations: 0 / 415.6 MB, free: 4.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0572/0.5883, allocations: 17.49 MB / 433.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.71, allocations: 15.98 kB / 433.1 MB, free: 3.375 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)