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.0008888/0.0008891, allocations: 97.55 kB / 17.01 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009483/0.0009483, allocations: 193.7 kB / 17.91 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 227.3 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002726, allocations: 4 kB / 306.8 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1241, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004312/0.1285, allocations: 3.523 MB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.1304, allocations: 0.9976 MB / 362.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.1307, allocations: 11.94 kB / 362.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.1309, allocations: 59.52 kB / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003066/0.1312, allocations: 142.8 kB / 363 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004387/0.1316, allocations: 139.8 kB / 363.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006851/0.1323, allocations: 0.7197 MB / 363.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000268/0.1326, allocations: 144 kB / 364 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003594/0.133, allocations: 251.1 kB / 364.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003618/0.1334, allocations: 302.8 kB / 364.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.658e-05/0.1334, allocations: 32 kB / 364.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.1336, allocations: 40 kB / 364.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1337, allocations: 111.5 kB / 364.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.1338, allocations: 125.4 kB / 364.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005894/0.1344, allocations: 0.6349 MB / 365.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1344, allocations: 4 kB / 365.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1344, allocations: 0 / 365.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1345, allocations: 0 / 365.5 MB, free: 6.738 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.002458/0.1369, allocations: 0.9953 MB / 366.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.137, allocations: 8.031 kB / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001155/0.1371, allocations: 70.53 kB / 366.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002486/0.1374, allocations: 79.33 kB / 366.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005772/0.1379, allocations: 396.9 kB / 367.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.138, allocations: 29 kB / 367.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.444e-05/0.1381, allocations: 39.91 kB / 367.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1396, allocations: 0.6341 MB / 367.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1396, allocations: 0 / 367.8 MB, free: 4.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-05/0.1396, allocations: 16 kB / 367.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.1396, allocations: 12 kB / 367.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.1415, allocations: 0.7026 MB / 368.5 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003538/0.145, allocations: 2.2 MB / 370.7 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003625/0.1486, allocations: 0.9966 MB / 371.7 MB, free: 344 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2489/0.3975, allocations: 440.1 kB / 372.1 MB, free: 19.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.91e-05/0.3977, allocations: 7.219 kB / 372.1 MB, free: 19.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001899/0.3996, allocations: 471.7 kB / 372.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 3.116e-06/0.3996, allocations: 3.75 kB / 372.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01624/0.4159, allocations: 2.63 MB / 375.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.4161, allocations: 90.88 kB / 375.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009899/0.4171, allocations: 404.6 kB / 375.7 MB, free: 19.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.4172, allocations: 34.89 kB / 375.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000378/0.4176, allocations: 234 kB / 376 MB, free: 19.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/0.4178, allocations: 129.5 kB / 376.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.4178, allocations: 12.97 kB / 376.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.418, allocations: 352.3 kB / 376.4 MB, free: 18.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.4193, allocations: 339 kB / 376.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.4205, allocations: 375.7 kB / 377.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.4218, allocations: 352.1 kB / 377.5 MB, free: 18.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.4218, allocations: 0 / 377.5 MB, free: 18.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003293/0.4251, allocations: 0.9695 MB / 378.5 MB, free: 18.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.457e-05/0.4252, allocations: 32.67 kB / 378.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.4252, allocations: 0.5625 kB / 378.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/0.4269, allocations: 416.2 kB / 378.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005488/0.4275, allocations: 108.8 kB / 379 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009709/0.4372, allocations: 3.496 MB / 382.5 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.4383, allocations: 119.9 kB / 382.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.779e-05/0.4384, allocations: 10.72 kB / 382.6 MB, free: 15.99 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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.000387/0.4388, allocations: 175.2 kB / 382.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.4389, allocations: 49 kB / 382.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.439, allocations: 61.56 kB / 382.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.439, allocations: 4.188 kB / 382.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.439, allocations: 4 kB / 382.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.4391, allocations: 2.156 kB / 382.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.4402, allocations: 0.6017 MB / 383.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4402, allocations: 0 / 383.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005101/0.4407, allocations: 96.03 kB / 383.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.4419, allocations: 421.1 kB / 384 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.442, allocations: 17.64 kB / 384 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007572/0.4496, allocations: 3.492 MB / 387.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4496, allocations: 1.031 kB / 387.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006005/0.4556, allocations: 1.662 MB / 389.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003062/0.456, allocations: 176.6 kB / 389.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.4561, allocations: 14.69 kB / 389.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005666/0.4566, allocations: 100.6 kB / 389.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4568, allocations: 47.77 kB / 389.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/0.4569, allocations: 13.98 kB / 389.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004732/0.4574, allocations: 289.2 kB / 389.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4574, allocations: 0 / 389.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001026/0.4584, allocations: 179.2 kB / 390 MB, free: 12.06 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005761/0.4642, allocations: 2.205 MB / 392.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002559/0.4668, allocations: 1.005 MB / 393.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.4668, allocations: 0 / 393.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/0.4683, allocations: 0.5925 MB / 393.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.469, allocations: 83.69 kB / 393.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009904/0.4789, allocations: 4.177 MB / 398.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.4794, allocations: 0.8363 MB / 398.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003308/0.4797, allocations: 43.39 kB / 398.9 MB, free: 5.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000249/0.48, allocations: 159.4 kB / 399.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of SimCode: time 2.655e-06/0.48, allocations: 0 / 399.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03673/0.5167, allocations: 16.49 MB / 415.6 MB, free: 5.215 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/0.517, allocations: 217.8 kB / 415.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.52/3.037, allocations: 4 kB / 415.8 MB, free: 4.973 MB / 318.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)