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.001307/0.001307, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001401/0.001401, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.388/1.388, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.001909/0.001909, allocations: 64.77 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2767, allocations: 53.37 MB / 431.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005405/0.2821, allocations: 4.132 MB / 436.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.284, allocations: 1.075 MB / 437.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.2842, allocations: 8 kB / 437.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.2844, allocations: 87.12 kB / 437.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003098/0.2848, allocations: 186.4 kB / 437.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004887/0.2852, allocations: 231.6 kB / 437.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008256/0.2861, allocations: 0.8212 MB / 438.5 MB, free: 364 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.2863, allocations: 125 kB / 438.6 MB, free: 236 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004506/0.2868, allocations: 327 kB / 438.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004524/0.2872, allocations: 366.5 kB / 439.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.2873, allocations: 80 kB / 439.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.2875, allocations: 92 kB / 439.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.2876, allocations: 163.4 kB / 439.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003099/0.2879, allocations: 334.5 kB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00087/0.2888, allocations: 0.8651 MB / 440.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2888, allocations: 0 / 440.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2888, allocations: 0 / 440.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.2888, allocations: 0 / 440.8 MB, free: 14.03 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.002525/0.2913, allocations: 0.9779 MB / 441.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2914, allocations: 12.03 kB / 441.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.2915, allocations: 74.72 kB / 441.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002186/0.2917, allocations: 72.55 kB / 441.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006024/0.2923, allocations: 360.4 kB / 442.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.2923, allocations: 29.38 kB / 442.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.241e-05/0.2924, allocations: 40.36 kB / 442.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.2938, allocations: 0.6069 MB / 442.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.2938, allocations: 0 / 442.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/0.2938, allocations: 16 kB / 443 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.2939, allocations: 8 kB / 443 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.2957, allocations: 0.6401 MB / 443.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003683/0.2994, allocations: 2.122 MB / 445.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003839/0.3032, allocations: 0.8276 MB / 446.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009812/0.3042, allocations: 373.2 kB / 446.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.366e-05/0.3043, allocations: 4.328 kB / 446.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001104/0.3054, allocations: 446.5 kB / 447.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.964e-06/0.3054, allocations: 0 / 447.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01416/0.3195, allocations: 2.297 MB / 449.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.3196, allocations: 93.08 kB / 449.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005917/0.3202, allocations: 417.9 kB / 450.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/0.3203, allocations: 33.7 kB / 450.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002101/0.3205, allocations: 236.9 kB / 450.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.3206, allocations: 142.8 kB / 450.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.3208, allocations: 66.06 kB / 450.6 MB, free: 3.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.321, allocations: 362.7 kB / 451 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000918/0.3219, allocations: 296.6 kB / 451.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000914/0.3228, allocations: 342.1 kB / 451.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.3245, allocations: 0.599 MB / 452.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.3245, allocations: 0 / 452.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003564/0.3281, allocations: 0.9979 MB / 453.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.3281, allocations: 33.7 kB / 453.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3281, allocations: 4 kB / 453.2 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.3294, allocations: 428.5 kB / 453.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004683/0.3299, allocations: 91.84 kB / 453.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008895/0.3388, allocations: 3.712 MB / 457.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007269/0.3395, allocations: 95.73 kB / 457.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.3395, allocations: 15.98 kB / 457.6 MB, free: 12.8 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.0002901/0.3398, allocations: 184.1 kB / 457.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.368e-05/0.3399, allocations: 51.67 kB / 457.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.34, allocations: 60.52 kB / 457.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.34, allocations: 4 kB / 457.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.34, allocations: 4 kB / 457.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3401, allocations: 0 / 457.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007225/0.3408, allocations: 0.5862 MB / 458.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3408, allocations: 0 / 458.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004592/0.3412, allocations: 83.92 kB / 458.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.3424, allocations: 436.4 kB / 459 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.964e-05/0.3425, allocations: 8 kB / 459 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00847/0.3509, allocations: 3.713 MB / 462.7 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3509, allocations: 7.875 kB / 462.7 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005777/0.3567, allocations: 1.5 MB / 464.2 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.357, allocations: 99.83 kB / 464.3 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.3571, allocations: 15.92 kB / 464.3 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005417/0.3576, allocations: 67.92 kB / 464.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.3578, allocations: 55.89 kB / 464.4 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.173e-05/0.3578, allocations: 15.98 kB / 464.4 MB, free: 5.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003605/0.3582, allocations: 299.1 kB / 464.7 MB, free: 5.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3582, allocations: 0 / 464.7 MB, free: 5.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006263/0.3588, allocations: 179.8 kB / 464.9 MB, free: 5.277 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.006143/0.3649, allocations: 2.041 MB / 466.9 MB, free: 3.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002739/0.3677, allocations: 0.9424 MB / 467.9 MB, free: 2.234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3677, allocations: 0 / 467.9 MB, free: 2.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001548/0.3692, allocations: 0.58 MB / 468.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.3698, allocations: 93.42 kB / 468.6 MB, free: 1.551 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01556/0.3853, allocations: 5.958 MB / 474.5 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000564/0.3859, allocations: 0.8394 MB / 475.4 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002619/0.3861, allocations: 43.39 kB / 475.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/0.3864, allocations: 163.4 kB / 475.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3864, allocations: 0 / 475.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05461/0.441, allocations: 18.95 MB / 494.5 MB, free: 7.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.72, allocations: 8 kB / 494.5 MB, free: 7.664 MB / 398.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.079938185866922] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.815979327075183 12.830569856 12.538759572 Calling exit ...