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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 225.4 MB / 240.1 MB, free: 15.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 88.42 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.551e-05/3.555e-05, allocations: 4 kB / 350.6 MB, free: 2.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 51.49 MB / 402.1 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3329/0.4406, allocations: 83.76 MB / 485.9 MB, free: 5.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.4409, allocations: 70.41 kB / 486 MB, free: 5.633 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02609/0.467, allocations: 9.374 MB / 495.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.508e-06/0.4671, allocations: 3.984 kB / 495.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.153e-05/0.4671, allocations: 11.98 kB / 495.3 MB, free: 13.68 MB / 362.7 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.002338/0.4695, allocations: 0.8722 MB / 496.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.196e-05/0.4695, allocations: 12.03 kB / 496.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002274/0.4698, allocations: 79.27 kB / 496.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003428/0.4701, allocations: 63.34 kB / 496.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007486/0.4709, allocations: 397.6 kB / 496.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.471, allocations: 32.7 kB / 496.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.079e-05/0.4711, allocations: 37.19 kB / 496.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009452/0.472, allocations: 481.3 kB / 497.3 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.472, allocations: 0 / 497.3 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.264e-05/0.4721, allocations: 19.98 kB / 497.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.4721, allocations: 8 kB / 497.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008551/0.473, allocations: 407 kB / 497.7 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004275/0.4773, allocations: 2.198 MB / 499.9 MB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00323/0.4805, allocations: 0.7282 MB / 0.4889 GB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004794/0.481, allocations: 273.8 kB / 0.4892 GB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.767e-05/0.4811, allocations: 6.297 kB / 0.4892 GB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006898/0.4818, allocations: 310.9 kB / 0.4895 GB, free: 7.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.515e-06/0.4818, allocations: 0 / 0.4895 GB, free: 7.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001333/0.4831, allocations: 0.5679 MB / 0.49 GB, free: 7.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.4832, allocations: 81.11 kB / 0.4901 GB, free: 7.094 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005263/0.4838, allocations: 355.2 kB / 0.4904 GB, free: 6.746 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.23e-05/0.4838, allocations: 37.7 kB / 0.4905 GB, free: 6.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/0.4841, allocations: 236.6 kB / 0.4907 GB, free: 6.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.4842, allocations: 134 kB / 0.4908 GB, free: 6.332 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.4842, allocations: 8 kB / 0.4908 GB, free: 6.324 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4844, allocations: 350.8 kB / 0.4912 GB, free: 5.973 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003614/0.4848, allocations: 172.8 kB / 0.4913 GB, free: 5.801 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003782/0.4852, allocations: 218.3 kB / 0.4916 GB, free: 5.578 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/0.4855, allocations: 191.7 kB / 0.4917 GB, free: 5.387 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4856, allocations: 0 / 0.4917 GB, free: 5.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001309/0.4869, allocations: 0.6126 MB / 0.4923 GB, free: 4.758 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.779e-05/0.4869, allocations: 33.7 kB / 0.4924 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4869, allocations: 0 / 0.4924 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009595/0.4879, allocations: 336.7 kB / 0.4927 GB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/0.4885, allocations: 111.8 kB / 0.4928 GB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006936/0.4954, allocations: 3.081 MB / 0.4958 GB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008192/0.4962, allocations: 123.8 kB / 0.4959 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-05/0.4963, allocations: 8 kB / 0.4959 GB, free: 0.9375 MB / 362.7 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 () * 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.0001568/0.4965, allocations: 130.2 kB / 0.496 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-05/0.4966, allocations: 43.44 kB / 0.4961 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.4968, allocations: 56.59 kB / 0.4961 GB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.4968, allocations: 4 kB / 0.4961 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4968, allocations: 3.953 kB / 0.4962 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.4968, allocations: 7.984 kB / 0.4962 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007426/0.4975, allocations: 0.6139 MB / 0.4968 GB, free: 32 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.4976, allocations: 0 / 0.4968 GB, free: 32 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/0.4981, allocations: 103.9 kB / 0.4969 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008208/0.499, allocations: 329.3 kB / 0.4972 GB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.332e-05/0.499, allocations: 11.98 kB / 0.4972 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006815/0.5059, allocations: 3.07 MB / 0.5002 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.5059, allocations: 4.031 kB / 0.5002 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.5076, allocations: 0.867 MB / 0.501 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.5079, allocations: 184.3 kB / 0.5012 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.508, allocations: 9.219 kB / 0.5012 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006697/0.5087, allocations: 103.9 kB / 0.5013 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.5089, allocations: 47.86 kB / 0.5014 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.052e-05/0.5089, allocations: 15.98 kB / 0.5014 GB, free: 11.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000338/0.5093, allocations: 285.2 kB / 0.5016 GB, free: 10.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5093, allocations: 0 / 0.5016 GB, free: 10.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006619/0.5099, allocations: 171.8 kB / 0.5018 GB, free: 10.68 MB / 378.7 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) * 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.002062/0.512, allocations: 1.433 MB / 0.5032 GB, free: 9.215 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.5136, allocations: 0.6776 MB / 0.5039 GB, free: 8.512 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5136, allocations: 1.406 kB / 0.5039 GB, free: 8.512 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.5146, allocations: 463.9 kB / 0.5043 GB, free: 8.047 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.5151, allocations: 61.53 kB / 0.5044 GB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.518, allocations: 0.9869 MB / 0.5053 GB, free: 6.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.5186, allocations: 0.8514 MB / 0.5062 GB, free: 6.094 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003011/0.5189, allocations: 39.41 kB / 0.5062 GB, free: 6.055 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/0.5192, allocations: 159.4 kB / 0.5064 GB, free: 5.898 MB / 378.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5192, allocations: 0 / 0.5064 GB, free: 5.898 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/0.5499, allocations: 15.25 MB / 0.5213 GB, free: 6.988 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.5501, allocations: 182.2 kB / 0.5214 GB, free: 6.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.35/2.9, allocations: 0 / 0.5214 GB, free: 6.77 MB / 394.7 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)