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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001989/0.001989, allocations: 120 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002285/0.002285, allocations: 218.3 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 230.4 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 59.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.1009, allocations: 53.38 MB / 427.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005518/0.1065, allocations: 4.12 MB / 431.2 MB, free: 484 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.1085, allocations: 1.071 MB / 432.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002507/0.1088, allocations: 8 kB / 432.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.109, allocations: 91.14 kB / 432.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.1094, allocations: 190.4 kB / 432.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005811/0.11, allocations: 231.6 kB / 432.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008484/0.1108, allocations: 0.8174 MB / 433.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.111, allocations: 128.9 kB / 433.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004421/0.1115, allocations: 330.9 kB / 434 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004092/0.1119, allocations: 362.6 kB / 434.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.112, allocations: 80 kB / 434.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.1121, allocations: 84 kB / 434.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.1123, allocations: 163.5 kB / 434.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.1126, allocations: 338.4 kB / 435 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008593/0.1134, allocations: 0.8563 MB / 435.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1134, allocations: 4 kB / 435.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1134, allocations: 0 / 435.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1134, allocations: 3.938 kB / 435.9 MB, free: 11.73 MB / 366.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.002671/0.1161, allocations: 1.049 MB / 437 MB, free: 10.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1162, allocations: 12.02 kB / 437 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.689e-05/0.1162, allocations: 17.19 kB / 437 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.509e-05/0.1163, allocations: 70.72 kB / 437.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.1165, allocations: 72.55 kB / 437.1 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006331/0.1171, allocations: 426.2 kB / 437.5 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.1172, allocations: 29.38 kB / 437.6 MB, free: 9.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.547e-05/0.1173, allocations: 40.31 kB / 437.6 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.1188, allocations: 0.6067 MB / 438.2 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.1188, allocations: 0 / 438.2 MB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.427e-05/0.1188, allocations: 16 kB / 438.2 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1188, allocations: 11.94 kB / 438.2 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002109/0.121, allocations: 0.644 MB / 438.9 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003887/0.1248, allocations: 2.161 MB / 441 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/0.1288, allocations: 0.8353 MB / 441.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.1299, allocations: 369.3 kB / 442.2 MB, free: 5.145 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.158e-05/0.13, allocations: 4.328 kB / 442.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.1312, allocations: 448.2 kB / 442.7 MB, free: 4.688 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.225e-06/0.1312, allocations: 0 / 442.7 MB, free: 4.688 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.01445/0.1456, allocations: 2.375 MB / 445.1 MB, free: 2.281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.682e-05/0.1457, allocations: 81.11 kB / 445.1 MB, free: 2.184 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006162/0.1463, allocations: 421.9 kB / 445.6 MB, free: 1.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.095e-05/0.1464, allocations: 41.7 kB / 445.6 MB, free: 1.719 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.1466, allocations: 240.8 kB / 445.8 MB, free: 1.477 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.1468, allocations: 134.8 kB / 446 MB, free: 1.344 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.1469, allocations: 74.05 kB / 446 MB, free: 1.262 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.1471, allocations: 350.8 kB / 446.4 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009845/0.1481, allocations: 300.6 kB / 446.7 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009811/0.1491, allocations: 342.1 kB / 447 MB, free: 284 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1812/0.3302, allocations: 0.5901 MB / 447.6 MB, free: 24.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.3302, allocations: 0.5938 kB / 447.6 MB, free: 24.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003614/0.3339, allocations: 0.9911 MB / 448.6 MB, free: 24.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.3339, allocations: 35.81 kB / 448.6 MB, free: 24.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.475e-06/0.3339, allocations: 5.906 kB / 448.6 MB, free: 24.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.3352, allocations: 425 kB / 449 MB, free: 24.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.3356, allocations: 91.12 kB / 449.1 MB, free: 24.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00788/0.3435, allocations: 3.813 MB / 452.9 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006999/0.3442, allocations: 98.27 kB / 453 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/0.3443, allocations: 14.61 kB / 453.1 MB, free: 22.38 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.000228/0.3445, allocations: 173.9 kB / 453.2 MB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.555e-05/0.3446, allocations: 47.91 kB / 453.3 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000122/0.3447, allocations: 57.2 kB / 453.3 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3447, allocations: 6.719 kB / 453.3 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3447, allocations: 0 / 453.3 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3447, allocations: 1.781 kB / 453.3 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006579/0.3454, allocations: 0.6258 MB / 454 MB, free: 21.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3454, allocations: 2.109 kB / 454 MB, free: 21.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005085/0.3459, allocations: 80.75 kB / 454 MB, free: 21.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001192/0.3471, allocations: 433.5 kB / 454.5 MB, free: 21.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-05/0.3471, allocations: 9.641 kB / 454.5 MB, free: 21.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008074/0.3552, allocations: 3.814 MB / 458.3 MB, free: 19.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3552, allocations: 0 / 458.3 MB, free: 19.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005759/0.361, allocations: 1.485 MB / 459.8 MB, free: 18.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.3612, allocations: 190.7 kB / 460 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.348e-05/0.3613, allocations: 8.625 kB / 460 MB, free: 18.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005767/0.3619, allocations: 79.52 kB / 460 MB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.362, allocations: 48.02 kB / 460.1 MB, free: 18.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.993e-05/0.3621, allocations: 15.14 kB / 460.1 MB, free: 18.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003159/0.3624, allocations: 292.2 kB / 460.4 MB, free: 18.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3624, allocations: 4.844 kB / 460.4 MB, free: 18.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006509/0.363, allocations: 180 kB / 460.6 MB, free: 18.45 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.005868/0.3689, allocations: 2.044 MB / 462.6 MB, free: 17.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002626/0.3715, allocations: 0.9422 MB / 463.6 MB, free: 17.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3715, allocations: 4.062 kB / 463.6 MB, free: 17.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.3732, allocations: 0.5786 MB / 464.1 MB, free: 16.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005485/0.3737, allocations: 93.55 kB / 464.2 MB, free: 16.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.3885, allocations: 5.956 MB / 470.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.3888, allocations: 0.8425 MB / 471 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002656/0.389, allocations: 44.72 kB / 471.1 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.3893, allocations: 167.4 kB / 471.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3893, allocations: 1.031 kB / 471.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03983/0.4291, allocations: 18.67 MB / 489.9 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.93, allocations: 6.984 kB / 489.9 MB, free: 0.9219 MB / 366.1 MB " [Timeout remaining time 647] (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/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 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.373473903979175] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.09323925699573 13.116687057 12.998937992 Calling exit ...