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.0009869/0.0009867, allocations: 91.8 kB / 16.95 MB, free: 6.113 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.00114/0.00114, allocations: 179.7 kB / 17.84 MB, free: 5.73 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.854/1.854, allocations: 205.4 MB / 224 MB, free: 13.06 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.000652/0.000652, allocations: 8 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1315, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004447/0.136, allocations: 3.359 MB / 331.8 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002489/0.1385, allocations: 0.983 MB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005937/0.1391, allocations: 8 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003636/0.1395, allocations: 55.52 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006372/0.1402, allocations: 146.8 kB / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006244/0.1408, allocations: 127.8 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.1419, allocations: 0.6653 MB / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003717/0.1423, allocations: 136.2 kB / 333.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005518/0.1428, allocations: 227.1 kB / 334.1 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005652/0.1434, allocations: 282.9 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.1436, allocations: 36 kB / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.1438, allocations: 32 kB / 334.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.1439, allocations: 99.52 kB / 334.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.1441, allocations: 121.5 kB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005901/0.1447, allocations: 0.6037 MB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/0.1447, allocations: 0 / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1447, allocations: 3.938 kB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.1447, allocations: 0 / 335.3 MB, free: 13.07 MB / 286.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.002418/0.1472, allocations: 0.9486 MB / 336.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.1472, allocations: 8.031 kB / 336.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000128/0.1474, allocations: 74.53 kB / 336.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.1475, allocations: 59.34 kB / 336.4 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006749/0.1482, allocations: 392.9 kB / 336.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/0.1483, allocations: 29 kB / 336.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.115e-05/0.1484, allocations: 39.98 kB / 336.8 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.1498, allocations: 0.5904 MB / 337.4 MB, free: 10.81 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.1499, allocations: 4 kB / 337.4 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.934e-05/0.1499, allocations: 16 kB / 337.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.1499, allocations: 8 kB / 337.5 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.1517, allocations: 0.644 MB / 338.1 MB, free: 10.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/0.1553, allocations: 2.047 MB / 340.2 MB, free: 7.992 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/0.159, allocations: 0.9327 MB / 341.1 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009683/0.16, allocations: 405.4 kB / 341.5 MB, free: 6.652 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.16, allocations: 11.73 kB / 341.5 MB, free: 6.641 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.1611, allocations: 443.6 kB / 341.9 MB, free: 6.191 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 3.095e-06/0.1612, allocations: 0 / 341.9 MB, free: 6.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009172/0.1703, allocations: 2.041 MB / 344 MB, free: 4.121 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.1705, allocations: 85.11 kB / 344.1 MB, free: 4.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.1713, allocations: 389.6 kB / 344.4 MB, free: 3.625 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.694e-05/0.1714, allocations: 33.64 kB / 344.5 MB, free: 3.586 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.1717, allocations: 224.6 kB / 344.7 MB, free: 3.359 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.1719, allocations: 130.1 kB / 344.8 MB, free: 3.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.172, allocations: 4 kB / 344.8 MB, free: 3.227 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.1722, allocations: 354.8 kB / 345.2 MB, free: 2.871 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008495/0.173, allocations: 304.6 kB / 345.5 MB, free: 2.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009033/0.1739, allocations: 346.1 kB / 345.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008829/0.1748, allocations: 319.5 kB / 346.1 MB, free: 1.906 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1749, allocations: 0 / 346.1 MB, free: 1.906 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004596/0.1795, allocations: 1.182 MB / 347.3 MB, free: 0.707 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.949e-05/0.1795, allocations: 33.69 kB / 347.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.1796, allocations: 4 kB / 347.3 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.1808, allocations: 420.5 kB / 347.7 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004437/0.1813, allocations: 95.81 kB / 347.8 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008399/0.1897, allocations: 3.499 MB / 351.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006869/0.1904, allocations: 103.7 kB / 351.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.742e-05/0.1905, allocations: 16 kB / 351.5 MB, free: 12.41 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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.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.0003668/0.1908, allocations: 181.8 kB / 351.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.191, allocations: 51.44 kB / 351.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.1911, allocations: 48.38 kB / 351.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.1911, allocations: 4 kB / 351.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1911, allocations: 0 / 351.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.1912, allocations: 3.984 kB / 351.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008379/0.192, allocations: 0.5912 MB / 352.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.192, allocations: 0 / 352.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004309/0.1925, allocations: 83.88 kB / 352.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/0.1936, allocations: 425.7 kB / 352.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-05/0.1937, allocations: 4 kB / 352.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007678/0.2014, allocations: 3.48 MB / 356.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2014, allocations: 4.031 kB / 356.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00439/0.2058, allocations: 1.408 MB / 357.7 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/0.2061, allocations: 172.5 kB / 357.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.985e-05/0.2062, allocations: 8 kB / 357.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005256/0.2067, allocations: 87.86 kB / 358 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.2069, allocations: 47.92 kB / 358 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.662e-05/0.2069, allocations: 12 kB / 358 MB, free: 5.586 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003845/0.2073, allocations: 275.1 kB / 358.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2073, allocations: 3.938 kB / 358.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007671/0.2081, allocations: 171.7 kB / 358.5 MB, free: 5.148 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,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 (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.004916/0.213, allocations: 1.963 MB / 360.4 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.2157, allocations: 0.9359 MB / 361.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.2157, allocations: 0 / 361.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001438/0.2171, allocations: 0.5687 MB / 361.9 MB, free: 1.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005784/0.2177, allocations: 77.41 kB / 362 MB, free: 1.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.228, allocations: 3.977 MB / 366 MB, free: 13.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.2285, allocations: 0.8352 MB / 366.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.2287, allocations: 39.28 kB / 366.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/0.229, allocations: 147.4 kB / 367 MB, free: 12.45 MB / 318.1 MB Notification: Performance of SimCode: time 2.675e-06/0.229, allocations: 0 / 367 MB, free: 12.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2388/0.4678, allocations: 15.78 MB / 382.8 MB, free: 52.97 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.4681, allocations: 227.7 kB / 383 MB, free: 52.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.632/3.1, allocations: 0 / 383 MB, free: 52.73 MB / 318.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) Environment - environmentSimulation: