Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 47.92 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2832, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005861/0.2891, allocations: 4.136 MB / 435.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.2913, allocations: 1.071 MB / 436.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002576/0.2916, allocations: 11.94 kB / 436.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.2918, allocations: 83.14 kB / 436.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003523/0.2922, allocations: 194.4 kB / 436.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005547/0.2927, allocations: 223.7 kB / 436.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009824/0.2937, allocations: 0.8212 MB / 437.7 MB, free: 300 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002704/0.294, allocations: 124.8 kB / 437.8 MB, free: 172 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005597/0.2946, allocations: 334.9 kB / 438.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.295, allocations: 358.6 kB / 438.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.2951, allocations: 80 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.2953, allocations: 88 kB / 438.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.2954, allocations: 167.4 kB / 438.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003339/0.2958, allocations: 330.5 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009336/0.2967, allocations: 0.8651 MB / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2967, allocations: 0 / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2967, allocations: 0 / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.2967, allocations: 0 / 440 MB, free: 13.97 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.002693/0.2994, allocations: 0.9779 MB / 441 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.2995, allocations: 12.03 kB / 441 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.2996, allocations: 78.7 kB / 441.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002225/0.2998, allocations: 64.56 kB / 441.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006905/0.3005, allocations: 376.3 kB / 441.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.3005, allocations: 29.38 kB / 441.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.289e-05/0.3006, allocations: 36.38 kB / 441.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.3021, allocations: 0.6069 MB / 442.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.3021, allocations: 0 / 442.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/0.3021, allocations: 16 kB / 442.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.3021, allocations: 8 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001903/0.304, allocations: 0.6401 MB / 442.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003934/0.308, allocations: 2.122 MB / 444.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004038/0.312, allocations: 0.8237 MB / 445.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.3132, allocations: 381.2 kB / 446.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.3132, allocations: 4.328 kB / 446.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.3144, allocations: 438.5 kB / 446.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.084e-06/0.3144, allocations: 4 kB / 446.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01498/0.3293, allocations: 2.305 MB / 448.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.876e-05/0.3294, allocations: 81.11 kB / 449 MB, free: 4.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006065/0.33, allocations: 417.9 kB / 449.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.967e-05/0.3301, allocations: 37.7 kB / 449.4 MB, free: 4.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/0.3303, allocations: 236.9 kB / 449.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.3305, allocations: 130.8 kB / 449.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.3307, allocations: 78.05 kB / 449.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.3309, allocations: 362.7 kB / 450.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009334/0.3318, allocations: 292.6 kB / 450.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009588/0.3328, allocations: 342.1 kB / 450.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.3345, allocations: 0.599 MB / 451.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3345, allocations: 0 / 451.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003717/0.3383, allocations: 0.9942 MB / 452.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.3383, allocations: 33.64 kB / 452.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3383, allocations: 3.984 kB / 452.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.3397, allocations: 438.8 kB / 452.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.3401, allocations: 83.92 kB / 453 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009176/0.3493, allocations: 3.721 MB / 456.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007334/0.3501, allocations: 99.73 kB / 456.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.891e-05/0.3501, allocations: 8 kB / 456.8 MB, free: 12.73 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.0002917/0.3504, allocations: 178.5 kB / 457 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-05/0.3505, allocations: 51.67 kB / 457 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.3506, allocations: 52.53 kB / 457.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3506, allocations: 4 kB / 457.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3506, allocations: 4 kB / 457.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3506, allocations: 7.984 kB / 457.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007546/0.3514, allocations: 0.594 MB / 457.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.3514, allocations: 0 / 457.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.3518, allocations: 75.92 kB / 457.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/0.3531, allocations: 432.6 kB / 458.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/0.3531, allocations: 7.984 kB / 458.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008844/0.362, allocations: 3.727 MB / 461.9 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.362, allocations: 7.875 kB / 461.9 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006087/0.368, allocations: 1.5 MB / 463.4 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003555/0.3684, allocations: 103.6 kB / 463.5 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.343e-05/0.3685, allocations: 11.94 kB / 463.5 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005696/0.3691, allocations: 75.91 kB / 463.6 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.3692, allocations: 51.91 kB / 463.6 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.3693, allocations: 11.98 kB / 463.7 MB, free: 5.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003823/0.3697, allocations: 295.2 kB / 463.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3697, allocations: 0 / 463.9 MB, free: 5.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006806/0.3703, allocations: 175.8 kB / 464.1 MB, free: 5.219 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.006322/0.3767, allocations: 2.051 MB / 466.2 MB, free: 3.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002714/0.3794, allocations: 0.9424 MB / 467.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3794, allocations: 0 / 467.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.381, allocations: 0.5801 MB / 467.7 MB, free: 1.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/0.3816, allocations: 89.75 kB / 467.8 MB, free: 1.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/0.397, allocations: 5.958 MB / 473.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005798/0.3976, allocations: 0.8394 MB / 474.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002439/0.3978, allocations: 43.39 kB / 474.6 MB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002714/0.3981, allocations: 163.4 kB / 474.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.293e-06/0.3981, allocations: 0 / 474.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05938/0.4575, allocations: 18.99 MB / 493.8 MB, free: 7.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/13.94, allocations: 29.31 kB / 493.8 MB, free: 7.566 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.309319612104446] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 14.058846609899774 14.075332157 13.775411193 Calling exit ...