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.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.001368/0.001368, allocations: 108.2 kB / 21.18 MB, free: 0.6992 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.001389/0.001389, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 55.92 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.287, allocations: 49.16 MB / 396.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00463/0.2917, allocations: 3.922 MB / 400.3 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.2938, allocations: 1.041 MB / 401.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.294, allocations: 10.72 kB / 401.3 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.2943, allocations: 80.67 kB / 401.4 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.2947, allocations: 175.9 kB / 401.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/0.2952, allocations: 211.6 kB / 401.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008632/0.2961, allocations: 0.7612 MB / 402.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/0.2964, allocations: 128 kB / 402.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/0.2968, allocations: 295 kB / 403 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004212/0.2972, allocations: 338.3 kB / 403.3 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.2973, allocations: 75.53 kB / 403.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.2974, allocations: 77.34 kB / 403.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.2975, allocations: 153.2 kB / 403.6 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002549/0.2978, allocations: 316 kB / 403.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008856/0.2987, allocations: 0.8 MB / 404.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2987, allocations: 4.609 kB / 404.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2987, allocations: 0 / 404.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.2987, allocations: 0 / 404.7 MB, free: 3.719 MB / 318.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.002618/0.3013, allocations: 0.9174 MB / 405.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.3013, allocations: 13.05 kB / 405.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.442e-05/0.3014, allocations: 71.91 kB / 405.7 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.3015, allocations: 60.45 kB / 405.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006076/0.3022, allocations: 348 kB / 406.1 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.3022, allocations: 29.55 kB / 406.1 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/0.3023, allocations: 39.88 kB / 406.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.3036, allocations: 0.5559 MB / 406.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.3036, allocations: 4.938 kB / 406.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.859e-05/0.3036, allocations: 24.08 kB / 406.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.3037, allocations: 9.5 kB / 406.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.3053, allocations: 0.57 MB / 407.3 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003288/0.3086, allocations: 1.966 MB / 409.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003373/0.3119, allocations: 0.7679 MB / 410.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008495/0.3128, allocations: 337.5 kB / 410.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.013e-05/0.3128, allocations: 8.672 kB / 410.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001005/0.3139, allocations: 399.9 kB / 410.8 MB, free: 252 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.324e-06/0.3139, allocations: 0 / 410.8 MB, free: 252 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009726/0.3236, allocations: 1.72 MB / 412.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/0.3237, allocations: 83.36 kB / 412.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005303/0.3242, allocations: 379.1 kB / 413 MB, free: 15.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-05/0.3242, allocations: 35.95 kB / 413 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.3244, allocations: 231.4 kB / 413.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.3246, allocations: 134.7 kB / 413.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.3248, allocations: 73.77 kB / 413.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3249, allocations: 356.3 kB / 413.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008141/0.3257, allocations: 268.4 kB / 414 MB, free: 14.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000839/0.3266, allocations: 308.2 kB / 414.3 MB, free: 14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.3281, allocations: 0.5434 MB / 414.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3281, allocations: 0 / 414.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004798/0.3329, allocations: 1.042 MB / 415.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.177e-05/0.333, allocations: 31.7 kB / 416 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.333, allocations: 5.281 kB / 416 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.3344, allocations: 397.1 kB / 416.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005359/0.335, allocations: 85.16 kB / 416.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008648/0.3436, allocations: 3.558 MB / 420 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/0.3444, allocations: 92.38 kB / 420.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/0.3444, allocations: 9.469 kB / 420.1 MB, free: 10.2 MB / 334.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0002862/0.3447, allocations: 181.6 kB / 420.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/0.3448, allocations: 47.5 kB / 420.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.3449, allocations: 54.86 kB / 420.4 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3449, allocations: 8 kB / 420.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3449, allocations: 0 / 420.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3449, allocations: 1.375 kB / 420.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007161/0.3456, allocations: 0.565 MB / 420.9 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3456, allocations: 0 / 420.9 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.346, allocations: 83.52 kB / 421 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001118/0.3472, allocations: 395.2 kB / 421.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.407e-05/0.3472, allocations: 10.36 kB / 421.4 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008535/0.3557, allocations: 3.555 MB / 425 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3557, allocations: 0 / 425 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004659/0.3604, allocations: 1.248 MB / 426.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003235/0.3607, allocations: 99.58 kB / 426.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.099e-05/0.3608, allocations: 8 kB / 426.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000535/0.3613, allocations: 63.92 kB / 426.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.3615, allocations: 52.09 kB / 426.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.3615, allocations: 15.98 kB / 426.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003509/0.3619, allocations: 267.2 kB / 426.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3619, allocations: 0 / 426.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006826/0.3626, allocations: 175.8 kB / 426.9 MB, free: 4.16 MB / 334.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 (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.004984/0.3676, allocations: 1.823 MB / 428.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002595/0.3702, allocations: 0.8488 MB / 429.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3702, allocations: 0 / 429.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.3717, allocations: 0.5259 MB / 430.1 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005913/0.3722, allocations: 89.31 kB / 430.2 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/0.386, allocations: 5.458 MB / 435.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.3865, allocations: 0.8316 MB / 436.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.3867, allocations: 39.28 kB / 436.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002372/0.387, allocations: 155.4 kB / 436.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.387, allocations: 0 / 436.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05693/0.4439, allocations: 17.93 MB / 454.6 MB, free: 8.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.85, allocations: 7.797 kB / 454.6 MB, free: 8.184 MB / 366.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-12 --interface-type ModelExchange --solver CVode --output-interval 5e-07 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.340004575999046] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 14.009081798001716 14.037011544 13.733186759 Calling exit ...