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.001334/0.001334, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001372/0.001372, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.43/1.43, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001449/0.001449, allocations: 47.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 53.33 MB / 426.3 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005671/0.1113, allocations: 4.12 MB / 430.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.198/0.3093, allocations: 1.051 MB / 431.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003471/0.3097, allocations: 12.47 kB / 431.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.3099, allocations: 88.59 kB / 431.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003149/0.3102, allocations: 188.7 kB / 431.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.3107, allocations: 232.8 kB / 432 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006779/0.3114, allocations: 0.8129 MB / 432.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.3116, allocations: 123.2 kB / 432.9 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003767/0.3119, allocations: 336.2 kB / 433.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.3123, allocations: 360.6 kB / 433.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.84e-05/0.3123, allocations: 81.44 kB / 433.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.3125, allocations: 87.09 kB / 433.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.3126, allocations: 163.5 kB / 433.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.3128, allocations: 338.5 kB / 434.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000876/0.3137, allocations: 0.8593 MB / 435.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3137, allocations: 5.031 kB / 435.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3137, allocations: 0 / 435.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.3137, allocations: 0 / 435.1 MB, free: 7.102 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.00268/0.3164, allocations: 1.048 MB / 436.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.3165, allocations: 9.812 kB / 436.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.3166, allocations: 79.03 kB / 436.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002386/0.3168, allocations: 73.36 kB / 436.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006117/0.3174, allocations: 427.4 kB / 436.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.3174, allocations: 34.06 kB / 436.8 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.753e-05/0.3175, allocations: 38.03 kB / 436.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.3189, allocations: 0.6022 MB / 437.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.3189, allocations: 0 / 437.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.319, allocations: 20.78 kB / 437.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.319, allocations: 9.406 kB / 437.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001966/0.321, allocations: 0.6355 MB / 438.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00358/0.3245, allocations: 2.164 MB / 440.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00374/0.3283, allocations: 0.8293 MB / 441.1 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.3294, allocations: 377 kB / 441.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.383e-05/0.3294, allocations: 8.734 kB / 441.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.3306, allocations: 432.5 kB / 441.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.894e-06/0.3306, allocations: 0 / 441.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01393/0.3446, allocations: 2.38 MB / 444.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.3446, allocations: 87.5 kB / 444.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006455/0.3453, allocations: 419.3 kB / 444.8 MB, free: 2.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.521e-05/0.3453, allocations: 32.77 kB / 444.8 MB, free: 2.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.3455, allocations: 235.3 kB / 445 MB, free: 2.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.3456, allocations: 143.7 kB / 445.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.3458, allocations: 74.52 kB / 445.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.098e-05/0.3458, allocations: 363.8 kB / 445.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009463/0.3468, allocations: 298.6 kB / 445.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009483/0.3477, allocations: 338 kB / 446.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001799/0.3495, allocations: 0.5995 MB / 446.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3495, allocations: 0 / 446.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003628/0.3532, allocations: 0.9901 MB / 447.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.3532, allocations: 32.39 kB / 447.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3532, allocations: 2.094 kB / 447.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.3545, allocations: 438.6 kB / 448.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004997/0.355, allocations: 79.73 kB / 448.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008668/0.3636, allocations: 3.822 MB / 452.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008336/0.3645, allocations: 95.78 kB / 452.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.3645, allocations: 9.219 kB / 452.3 MB, free: 14.53 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.0003007/0.3648, allocations: 176 kB / 452.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.349e-05/0.3649, allocations: 56.48 kB / 452.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000146/0.3651, allocations: 58.94 kB / 452.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3651, allocations: 3.625 kB / 452.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3651, allocations: 0 / 452.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3651, allocations: 5.141 kB / 452.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007685/0.3658, allocations: 0.6251 MB / 453.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3659, allocations: 8.672 kB / 453.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004833/0.3663, allocations: 75.52 kB / 453.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.3676, allocations: 435.2 kB / 453.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.607e-05/0.3676, allocations: 9.203 kB / 453.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009022/0.3766, allocations: 3.807 MB / 457.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3766, allocations: 0 / 457.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006083/0.3827, allocations: 1.492 MB / 459 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004082/0.3831, allocations: 188.7 kB / 459.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.118e-05/0.3832, allocations: 11.19 kB / 459.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005777/0.3838, allocations: 74.53 kB / 459.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.384, allocations: 51.55 kB / 459.3 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.711e-05/0.384, allocations: 11.88 kB / 459.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003955/0.3844, allocations: 294.8 kB / 459.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3844, allocations: 1.062 kB / 459.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007413/0.3852, allocations: 177.3 kB / 459.8 MB, free: 9.445 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.00644/0.3916, allocations: 2.049 MB / 461.8 MB, free: 8.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002918/0.3945, allocations: 0.944 MB / 462.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3945, allocations: 4.062 kB / 462.8 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.3962, allocations: 0.5841 MB / 463.4 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006381/0.3968, allocations: 85.72 kB / 463.5 MB, free: 7.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/0.4132, allocations: 5.964 MB / 469.4 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005274/0.4137, allocations: 0.8471 MB / 470.3 MB, free: 2.777 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002504/0.414, allocations: 40.56 kB / 470.3 MB, free: 2.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002751/0.4142, allocations: 168.6 kB / 470.5 MB, free: 2.613 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4142, allocations: 0 / 470.5 MB, free: 2.613 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05489/0.4691, allocations: 18.62 MB / 489.1 MB, free: 280 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.55, allocations: 6.812 kB / 489.1 MB, free: 276 kB / 382.1 MB " [Timeout remaining time 647] (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: 14.878834314877167] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.656600032001734 12.678604084 12.360710559 Calling exit ...