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.001239/0.001239, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001387/0.001387, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.39/1.39, allocations: 230.6 MB / 258.3 MB, free: 8.02 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 51.92 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2502, allocations: 53.37 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005499/0.2556, allocations: 4.124 MB / 436.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.2578, allocations: 1.075 MB / 437.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.258, allocations: 11.94 kB / 437.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002276/0.2582, allocations: 87.14 kB / 437.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003207/0.2585, allocations: 186.4 kB / 437.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005126/0.259, allocations: 235.6 kB / 437.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000853/0.2599, allocations: 0.8134 MB / 438.5 MB, free: 292 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.2601, allocations: 122.4 kB / 438.6 MB, free: 164 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005553/0.2607, allocations: 334.9 kB / 438.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004424/0.2611, allocations: 362.6 kB / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.2613, allocations: 84 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.2614, allocations: 88 kB / 439.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.2615, allocations: 159.4 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003251/0.2619, allocations: 342.5 kB / 439.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009225/0.2628, allocations: 0.8557 MB / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2628, allocations: 0 / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2628, allocations: 0 / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.2628, allocations: 0 / 440.8 MB, free: 13.96 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.002565/0.2654, allocations: 0.9818 MB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.2654, allocations: 8.031 kB / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.387e-05/0.2654, allocations: 9.188 kB / 441.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.034e-05/0.2655, allocations: 74.72 kB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.2657, allocations: 72.55 kB / 441.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006188/0.2664, allocations: 384.3 kB / 442.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.2664, allocations: 29.38 kB / 442.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.794e-05/0.2665, allocations: 36.38 kB / 442.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.2679, allocations: 0.6028 MB / 443 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2679, allocations: 3.938 kB / 443 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.156e-05/0.268, allocations: 16 kB / 443 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.268, allocations: 11.98 kB / 443 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001955/0.2699, allocations: 0.6362 MB / 443.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.2739, allocations: 2.115 MB / 445.7 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00385/0.2778, allocations: 0.8237 MB / 446.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.2789, allocations: 373.3 kB / 446.9 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.386e-05/0.2789, allocations: 12.3 kB / 446.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.2801, allocations: 434.5 kB / 447.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.524e-06/0.2801, allocations: 4 kB / 447.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01439/0.2945, allocations: 2.305 MB / 449.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/0.2946, allocations: 85.11 kB / 449.8 MB, free: 4.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005535/0.2951, allocations: 421.9 kB / 450.2 MB, free: 4.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.636e-05/0.2952, allocations: 29.7 kB / 450.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.2954, allocations: 236.9 kB / 450.4 MB, free: 4.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.2955, allocations: 142.8 kB / 450.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.2957, allocations: 70.06 kB / 450.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.2959, allocations: 362.8 kB / 451 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009617/0.2969, allocations: 292.6 kB / 451.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009926/0.2979, allocations: 338.1 kB / 451.6 MB, free: 2.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/0.2997, allocations: 0.599 MB / 452.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2997, allocations: 3.938 kB / 452.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003676/0.3034, allocations: 0.9942 MB / 453.2 MB, free: 1.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.3034, allocations: 36.36 kB / 453.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3034, allocations: 0 / 453.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.3048, allocations: 442.1 kB / 453.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.3052, allocations: 91.86 kB / 453.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008615/0.3139, allocations: 3.712 MB / 457.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/0.3145, allocations: 95.69 kB / 457.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.3146, allocations: 23.94 kB / 457.6 MB, free: 12.71 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.0002625/0.3148, allocations: 170.5 kB / 457.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.268e-05/0.3149, allocations: 47.67 kB / 457.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.315, allocations: 60.52 kB / 457.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.315, allocations: 4 kB / 457.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.315, allocations: 0 / 457.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3151, allocations: 4 kB / 457.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00072/0.3158, allocations: 0.5901 MB / 458.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.3158, allocations: 0 / 458.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004849/0.3163, allocations: 83.86 kB / 458.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.3175, allocations: 439.5 kB / 459 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/0.3175, allocations: 8 kB / 459 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0085/0.326, allocations: 3.71 MB / 462.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.326, allocations: 0 / 462.7 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005891/0.3319, allocations: 1.504 MB / 464.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002799/0.3322, allocations: 99.62 kB / 464.3 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.248e-05/0.3323, allocations: 15.94 kB / 464.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005628/0.3328, allocations: 75.91 kB / 464.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.333, allocations: 51.91 kB / 464.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.839e-05/0.333, allocations: 8 kB / 464.4 MB, free: 5.668 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003516/0.3334, allocations: 299.1 kB / 464.7 MB, free: 5.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3334, allocations: 3.938 kB / 464.7 MB, free: 5.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006116/0.334, allocations: 179.8 kB / 464.9 MB, free: 5.199 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.006275/0.3403, allocations: 2.049 MB / 467 MB, free: 3.117 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002797/0.3431, allocations: 0.9424 MB / 467.9 MB, free: 2.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3431, allocations: 0 / 467.9 MB, free: 2.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.3447, allocations: 0.5801 MB / 468.5 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005362/0.3453, allocations: 93.69 kB / 468.6 MB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/0.3606, allocations: 5.95 MB / 474.5 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.3611, allocations: 0.8433 MB / 475.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.3613, allocations: 43.39 kB / 475.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.3616, allocations: 163.4 kB / 475.6 MB, free: 10.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3616, allocations: 3.938 kB / 475.6 MB, free: 10.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04797/0.4096, allocations: 19.03 MB / 494.6 MB, free: 7.539 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.24, allocations: 14.62 kB / 494.6 MB, free: 7.527 MB / 398.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: 15.545983378018718] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.414241066027898 13.43020821 13.164247675 Calling exit ...