Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 51.92 kB / 365.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1145, allocations: 52.13 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005336/0.1198, allocations: 4.075 MB / 421.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.1216, allocations: 1.013 MB / 422.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.1219, allocations: 8 kB / 422.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.1221, allocations: 83.14 kB / 423 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003207/0.1224, allocations: 190.4 kB / 423.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004822/0.1229, allocations: 215.7 kB / 423.4 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007959/0.1237, allocations: 0.8017 MB / 424.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.1239, allocations: 124.9 kB / 424.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.1243, allocations: 314.9 kB / 424.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004253/0.1247, allocations: 358.6 kB / 424.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1248, allocations: 84 kB / 425 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.125, allocations: 80 kB / 425.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.1251, allocations: 155.5 kB / 425.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003072/0.1254, allocations: 334.5 kB / 425.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008496/0.1263, allocations: 0.8407 MB / 426.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1263, allocations: 0 / 426.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1263, allocations: 0 / 426.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.1263, allocations: 0 / 426.4 MB, free: 3.934 MB / 350.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.002617/0.1289, allocations: 1.045 MB / 427.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1289, allocations: 8.031 kB / 427.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.757e-05/0.129, allocations: 74.66 kB / 427.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.1291, allocations: 76.5 kB / 427.6 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006186/0.1298, allocations: 422.2 kB / 428 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.1298, allocations: 29.38 kB / 428.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-05/0.1299, allocations: 36.38 kB / 428.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.1312, allocations: 0.5991 MB / 428.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.1313, allocations: 0 / 428.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/0.1313, allocations: 19.98 kB / 428.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.1313, allocations: 8 kB / 428.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.1331, allocations: 0.6206 MB / 429.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003618/0.1367, allocations: 2.149 MB / 431.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003744/0.1404, allocations: 0.8042 MB / 432.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009511/0.1414, allocations: 365.2 kB / 432.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.239e-05/0.1414, allocations: 16.28 kB / 432.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/0.1425, allocations: 430.6 kB / 433.1 MB, free: 13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.114e-06/0.1425, allocations: 0 / 433.1 MB, free: 13 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.01387/0.1564, allocations: 2.279 MB / 435.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.227e-05/0.1565, allocations: 81.11 kB / 435.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/0.1571, allocations: 410 kB / 435.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.74e-05/0.1571, allocations: 37.7 kB / 435.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.1573, allocations: 240.8 kB / 436.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.1575, allocations: 138.8 kB / 436.3 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.1576, allocations: 74.06 kB / 436.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1578, allocations: 350.7 kB / 436.7 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008897/0.1587, allocations: 296.6 kB / 437 MB, free: 9.043 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008839/0.1596, allocations: 330.1 kB / 437.3 MB, free: 8.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.1612, allocations: 0.5873 MB / 437.9 MB, free: 8.113 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1612, allocations: 0 / 437.9 MB, free: 8.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00349/0.1647, allocations: 0.9629 MB / 438.8 MB, free: 7.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.736e-05/0.1648, allocations: 33.7 kB / 438.9 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1648, allocations: 0 / 438.9 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.166, allocations: 403 kB / 439.3 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.1665, allocations: 87.92 kB / 439.3 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00845/0.1749, allocations: 3.671 MB / 443 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000722/0.1756, allocations: 99.88 kB / 443.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.165e-05/0.1757, allocations: 8 kB / 443.1 MB, free: 2.695 MB / 366.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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.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.0002793/0.176, allocations: 182.4 kB / 443.3 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.178e-05/0.176, allocations: 51.67 kB / 443.4 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.1762, allocations: 52.47 kB / 443.4 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1762, allocations: 7.938 kB / 443.4 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1762, allocations: 4 kB / 443.4 MB, free: 2.395 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1762, allocations: 4.078 kB / 443.4 MB, free: 2.391 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007117/0.1769, allocations: 0.6106 MB / 444 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1769, allocations: 0 / 444 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.1774, allocations: 79.92 kB / 444.1 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.1785, allocations: 392.5 kB / 444.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.1785, allocations: 12 kB / 444.5 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2039/0.3824, allocations: 3.657 MB / 448.2 MB, free: 29.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3824, allocations: 0.9375 kB / 448.2 MB, free: 29.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005264/0.3877, allocations: 1.448 MB / 449.6 MB, free: 29.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.388, allocations: 177.5 kB / 449.8 MB, free: 29.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.574e-05/0.3881, allocations: 10.92 kB / 449.8 MB, free: 29.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005605/0.3886, allocations: 68 kB / 449.9 MB, free: 29.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.3888, allocations: 54.23 kB / 449.9 MB, free: 29.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.3888, allocations: 16.7 kB / 449.9 MB, free: 29.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000317/0.3892, allocations: 290.2 kB / 450.2 MB, free: 29.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3892, allocations: 0 / 450.2 MB, free: 29.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006038/0.3898, allocations: 177.2 kB / 450.4 MB, free: 29.35 MB / 366.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 (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.005859/0.3956, allocations: 2.009 MB / 452.4 MB, free: 28.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002568/0.3982, allocations: 0.9023 MB / 453.3 MB, free: 28.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3982, allocations: 5.094 kB / 453.3 MB, free: 28.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.3998, allocations: 0.5469 MB / 453.8 MB, free: 28.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.4004, allocations: 89.98 kB / 453.9 MB, free: 28.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.4147, allocations: 5.793 MB / 459.7 MB, free: 25.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.415, allocations: 0.8338 MB / 460.6 MB, free: 24.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002926/0.4153, allocations: 45.08 kB / 460.6 MB, free: 24.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.4155, allocations: 164.1 kB / 460.8 MB, free: 24.74 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4155, allocations: 2.953 kB / 460.8 MB, free: 24.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04943/0.4649, allocations: 18.39 MB / 479.2 MB, free: 16.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.57, allocations: 4.625 kB / 479.2 MB, free: 16.21 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.940079996362329] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.673340403009206 12.687444591 12.558494665 Calling exit ...