Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001513/0.001513, allocations: 116.8 kB / 18.5 MB, free: 4.52 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.001774/0.001774, allocations: 212.9 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.508/1.508, allocations: 230.5 MB / 254.8 MB, free: 15.11 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-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 67.84 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1101, allocations: 53.33 MB / 427 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005535/0.1156, allocations: 4.118 MB / 431.1 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2111/0.3267, allocations: 1.051 MB / 432.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003734/0.3271, allocations: 9.906 kB / 432.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.3274, allocations: 85.36 kB / 432.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.3277, allocations: 192 kB / 432.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004989/0.3282, allocations: 231.3 kB / 432.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007168/0.3289, allocations: 0.8152 MB / 433.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/0.3291, allocations: 127.1 kB / 433.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003876/0.3295, allocations: 330.3 kB / 434 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.3298, allocations: 361.5 kB / 434.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.718e-05/0.3299, allocations: 80.44 kB / 434.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.3301, allocations: 88.25 kB / 434.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-05/0.3302, allocations: 166.3 kB / 434.6 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.3304, allocations: 337.2 kB / 435 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007895/0.3312, allocations: 0.8609 MB / 435.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3312, allocations: 1.219 kB / 435.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3312, allocations: 1.406 kB / 435.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.3312, allocations: 0 / 435.8 MB, free: 7.117 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.002428/0.3336, allocations: 1.054 MB / 436.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.3337, allocations: 9.594 kB / 436.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.586e-05/0.3338, allocations: 71.89 kB / 437 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002313/0.334, allocations: 71.5 kB / 437 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.3345, allocations: 429.3 kB / 437.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/0.3346, allocations: 32.72 kB / 437.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-05/0.3347, allocations: 37.61 kB / 437.5 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.3361, allocations: 0.6014 MB / 438.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3361, allocations: 6.188 kB / 438.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.256e-05/0.3361, allocations: 16.83 kB / 438.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.3361, allocations: 8.156 kB / 438.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.3381, allocations: 0.6414 MB / 438.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/0.3415, allocations: 2.162 MB / 441 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003746/0.3453, allocations: 0.8346 MB / 441.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.3463, allocations: 377.8 kB / 442.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.25e-05/0.3463, allocations: 6.578 kB / 442.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.3475, allocations: 427.3 kB / 442.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.723e-06/0.3475, allocations: 0.5 kB / 442.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.014/0.3615, allocations: 2.38 MB / 445 MB, free: 3.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.3616, allocations: 86.52 kB / 445.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005035/0.3621, allocations: 420.7 kB / 445.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.445e-05/0.3621, allocations: 31.95 kB / 445.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.3623, allocations: 235.3 kB / 445.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3624, allocations: 145.1 kB / 445.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.3626, allocations: 69.42 kB / 445.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.882e-05/0.3626, allocations: 364.5 kB / 446.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009192/0.3636, allocations: 298.6 kB / 446.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009208/0.3645, allocations: 337.3 kB / 446.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001735/0.3662, allocations: 0.5956 MB / 447.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3662, allocations: 1.094 kB / 447.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003459/0.3697, allocations: 0.9971 MB / 448.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.801e-05/0.3697, allocations: 32.92 kB / 448.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3697, allocations: 1.375 kB / 448.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.371, allocations: 438 kB / 449 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004639/0.3714, allocations: 90.41 kB / 449.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008168/0.3796, allocations: 3.813 MB / 452.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007705/0.3804, allocations: 95.09 kB / 453 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.3804, allocations: 19.8 kB / 453 MB, free: 14.55 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.0002932/0.3807, allocations: 170.8 kB / 453.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.694e-05/0.3808, allocations: 50.36 kB / 453.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.3809, allocations: 60.33 kB / 453.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3809, allocations: 3.781 kB / 453.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.3809, allocations: 1.25 kB / 453.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3809, allocations: 0 / 453.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008094/0.3818, allocations: 0.6321 MB / 453.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3818, allocations: 0 / 453.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004913/0.3823, allocations: 80.02 kB / 454 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.3835, allocations: 439 kB / 454.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.713e-05/0.3835, allocations: 5.688 kB / 454.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008619/0.3922, allocations: 3.813 MB / 458.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3922, allocations: 4 kB / 458.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005909/0.3981, allocations: 1.493 MB / 459.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003384/0.3984, allocations: 182.1 kB / 459.9 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.58e-05/0.3985, allocations: 14.19 kB / 459.9 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005804/0.3991, allocations: 74.19 kB / 460 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.3993, allocations: 47.34 kB / 460 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.279e-05/0.3993, allocations: 11.61 kB / 460 MB, free: 9.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003823/0.3997, allocations: 299.7 kB / 460.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3997, allocations: 0 / 460.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007119/0.4004, allocations: 174 kB / 460.5 MB, free: 9.48 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.006197/0.4066, allocations: 2.055 MB / 462.6 MB, free: 8.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002827/0.4094, allocations: 0.9471 MB / 463.5 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.4094, allocations: 0 / 463.5 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.411, allocations: 0.5895 MB / 464.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005816/0.4116, allocations: 79.98 kB / 464.2 MB, free: 7.184 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01587/0.4275, allocations: 5.956 MB / 470.1 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005605/0.4281, allocations: 0.8425 MB / 471 MB, free: 2.816 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002791/0.4283, allocations: 46.3 kB / 471 MB, free: 2.793 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.4286, allocations: 168.9 kB / 471.2 MB, free: 2.648 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4286, allocations: 0 / 471.2 MB, free: 2.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05416/0.4828, allocations: 18.64 MB / 489.8 MB, free: 288 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.84, allocations: 4.062 kB / 489.8 MB, free: 284 kB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.410386139992625] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.944228844717145 12.964971772 12.629944426 Calling exit ...