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.001172/0.001172, allocations: 94.69 kB / 16.94 MB, free: 6.445 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.0009542/0.0009543, allocations: 183.1 kB / 17.83 MB, free: 6.012 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.456/1.456, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004284/0.0004285, allocations: 15.28 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.09919, allocations: 47.57 MB / 328.4 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003458/0.1027, allocations: 3.15 MB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1043, allocations: 1.014 MB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.1045, allocations: 7.938 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.385e-05/0.1046, allocations: 63.58 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.1049, allocations: 191.4 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.1053, allocations: 127.8 kB / 333 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005077/0.1058, allocations: 475 kB / 333.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.106, allocations: 136.1 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.1063, allocations: 235.2 kB / 333.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003343/0.1066, allocations: 274.9 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-05/0.1067, allocations: 32 kB / 334.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.115e-05/0.1068, allocations: 32 kB / 334.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.973e-05/0.1069, allocations: 103.6 kB / 334.2 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.107, allocations: 125.4 kB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000542/0.1076, allocations: 0.5959 MB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1076, allocations: 7.938 kB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1076, allocations: 0 / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1076, allocations: 4 kB / 334.9 MB, free: 13.44 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.002253/0.1099, allocations: 0.9486 MB / 335.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.1099, allocations: 8.031 kB / 335.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.43e-05/0.11, allocations: 74.47 kB / 336 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.1101, allocations: 55.34 kB / 336 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005277/0.1107, allocations: 389 kB / 336.4 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.199e-05/0.1108, allocations: 29 kB / 336.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.349e-05/0.1108, allocations: 32 kB / 336.5 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.1122, allocations: 0.5942 MB / 337.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.1122, allocations: 3.984 kB / 337.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.513e-05/0.1123, allocations: 20 kB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.1123, allocations: 8 kB / 337.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/0.114, allocations: 0.6441 MB / 337.7 MB, free: 10.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/0.1175, allocations: 2.051 MB / 339.8 MB, free: 8.371 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003584/0.1211, allocations: 0.9327 MB / 340.7 MB, free: 7.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.1212, allocations: 8.625 kB / 340.7 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.1222, allocations: 439.3 kB / 341.2 MB, free: 6.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.314e-06/0.1223, allocations: 0 / 341.2 MB, free: 6.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009124/0.1314, allocations: 2.037 MB / 343.2 MB, free: 4.914 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.1315, allocations: 85.09 kB / 343.3 MB, free: 4.812 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000429/0.1319, allocations: 381.7 kB / 343.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.132, allocations: 33.7 kB / 343.7 MB, free: 4.387 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.1321, allocations: 220.6 kB / 343.9 MB, free: 4.164 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.1323, allocations: 130.1 kB / 344 MB, free: 4.035 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-05/0.1323, allocations: 8 kB / 344 MB, free: 4.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1324, allocations: 354.8 kB / 344.4 MB, free: 3.672 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008205/0.1333, allocations: 304.6 kB / 344.7 MB, free: 3.371 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008344/0.1341, allocations: 342.1 kB / 345 MB, free: 3.027 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008225/0.1349, allocations: 319.5 kB / 345.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.1349, allocations: 0 / 345.3 MB, free: 2.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00435/0.1393, allocations: 1.186 MB / 346.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.1394, allocations: 29.7 kB / 346.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1394, allocations: 0 / 346.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.1406, allocations: 424.5 kB / 347 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004302/0.141, allocations: 91.88 kB / 347 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008096/0.1491, allocations: 3.639 MB / 350.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006418/0.1498, allocations: 107.7 kB / 350.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.1499, allocations: 15.98 kB / 350.8 MB, free: 13.07 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.0002503/0.1501, allocations: 165.8 kB / 351 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.137e-05/0.1502, allocations: 47.39 kB / 351 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1503, allocations: 56.38 kB / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1503, allocations: 4 kB / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1503, allocations: 0 / 351.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.1503, allocations: 11.86 kB / 351.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006879/0.151, allocations: 0.5834 MB / 351.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.151, allocations: 8 kB / 351.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004259/0.1515, allocations: 79.94 kB / 351.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.1526, allocations: 425.7 kB / 352.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.1527, allocations: 8 kB / 352.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007872/0.1605, allocations: 3.625 MB / 355.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1606, allocations: 0 / 355.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004376/0.165, allocations: 1.408 MB / 357.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.1652, allocations: 168.5 kB / 357.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.983e-05/0.1653, allocations: 12 kB / 357.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005259/0.1659, allocations: 87.92 kB / 357.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.166, allocations: 43.92 kB / 357.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.1661, allocations: 12 kB / 357.5 MB, free: 6.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003008/0.1664, allocations: 275.2 kB / 357.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1664, allocations: 0 / 357.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006407/0.167, allocations: 167.7 kB / 358 MB, free: 5.688 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.004762/0.1718, allocations: 1.959 MB / 359.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.1742, allocations: 0.9435 MB / 360.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1743, allocations: 0 / 360.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.1757, allocations: 0.5726 MB / 361.4 MB, free: 2.137 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.1762, allocations: 73.39 kB / 361.5 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009831/0.186, allocations: 4.113 MB / 365.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.1865, allocations: 0.8469 MB / 366.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002337/0.1867, allocations: 39.28 kB / 366.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.1869, allocations: 147.4 kB / 366.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.335e-06/0.1869, allocations: 0 / 366.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1952/0.3822, allocations: 15.77 MB / 382.4 MB, free: 52.57 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/0.3824, allocations: 218.7 kB / 382.6 MB, free: 52.33 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.568, allocations: 0 / 382.6 MB, free: 52.33 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: