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.0013/0.0013, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.001409/0.001409, allocations: 208.4 kB / 24.51 MB, free: 3.918 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.416/1.416, allocations: 230.6 MB / 258.3 MB, free: 7.723 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.001484/0.001484, allocations: 47.92 kB / 378.5 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2796, allocations: 53.38 MB / 431.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005127/0.2847, allocations: 3.702 MB / 435.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.2866, allocations: 1.028 MB / 436.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.2868, allocations: 7.938 kB / 436.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.287, allocations: 91.08 kB / 436.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003379/0.2873, allocations: 194.4 kB / 436.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005263/0.2879, allocations: 235.6 kB / 437.1 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008422/0.2887, allocations: 0.8134 MB / 437.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.2889, allocations: 113.4 kB / 438.1 MB, free: 396 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.2894, allocations: 330.9 kB / 438.4 MB, free: 64 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004541/0.2899, allocations: 366.6 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.29, allocations: 84 kB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.2901, allocations: 88 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.2903, allocations: 159.5 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.2906, allocations: 282.8 kB / 439.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008553/0.2914, allocations: 0.8679 MB / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.2914, allocations: 4 kB / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2914, allocations: 0 / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2914, allocations: 0 / 440.2 MB, free: 14.23 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.002666/0.2941, allocations: 0.9779 MB / 441.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.2941, allocations: 12.03 kB / 441.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.304e-05/0.2942, allocations: 13.12 kB / 441.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.403e-05/0.2943, allocations: 78.7 kB / 441.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.2945, allocations: 68.56 kB / 441.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006459/0.2951, allocations: 368.4 kB / 441.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.988e-05/0.2952, allocations: 29.38 kB / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.308e-05/0.2953, allocations: 44.38 kB / 441.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.2967, allocations: 0.6279 MB / 442.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.2967, allocations: 0 / 442.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.43e-05/0.2968, allocations: 16 kB / 442.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.2968, allocations: 8 kB / 442.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.2988, allocations: 0.6401 MB / 443.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003773/0.3026, allocations: 1.959 MB / 445 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003904/0.3065, allocations: 0.8373 MB / 445.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.3075, allocations: 369.2 kB / 446.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.453e-05/0.3076, allocations: 8.328 kB / 446.2 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.3088, allocations: 468.2 kB / 446.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.545e-06/0.3088, allocations: 0 / 446.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01448/0.3232, allocations: 2.297 MB / 449 MB, free: 5.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.597e-05/0.3233, allocations: 85.11 kB / 449.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006574/0.324, allocations: 421.9 kB / 449.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.191e-05/0.3241, allocations: 37.7 kB / 449.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.3243, allocations: 232.9 kB / 449.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.3245, allocations: 138.8 kB / 449.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.3247, allocations: 78.05 kB / 450 MB, free: 4.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.3249, allocations: 350.8 kB / 450.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009573/0.3258, allocations: 326.2 kB / 450.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009629/0.3268, allocations: 401.5 kB / 451 MB, free: 3.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/0.3285, allocations: 0.5951 MB / 451.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.3285, allocations: 4 kB / 451.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003725/0.3323, allocations: 1.015 MB / 452.6 MB, free: 1.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.527e-05/0.3323, allocations: 41.69 kB / 452.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.3323, allocations: 3.938 kB / 452.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.3336, allocations: 431.2 kB / 453.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004807/0.3341, allocations: 87.92 kB / 453.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008986/0.3431, allocations: 3.639 MB / 456.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007543/0.3438, allocations: 95.73 kB / 456.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/0.3439, allocations: 15.98 kB / 456.9 MB, free: 13.03 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.000369/0.3443, allocations: 181.7 kB / 457.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.389e-05/0.3444, allocations: 51.67 kB / 457.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.3445, allocations: 56.62 kB / 457.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.3445, allocations: 7.984 kB / 457.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3445, allocations: 3.984 kB / 457.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3445, allocations: 0 / 457.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006726/0.3452, allocations: 0.4888 MB / 457.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3452, allocations: 0 / 457.7 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004843/0.3457, allocations: 83.92 kB / 457.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.3469, allocations: 428.5 kB / 458.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.906e-05/0.3469, allocations: 12 kB / 458.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008694/0.3556, allocations: 3.629 MB / 461.9 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3556, allocations: 0 / 461.9 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00596/0.3616, allocations: 1.5 MB / 463.4 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003079/0.3619, allocations: 95.64 kB / 463.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.93e-05/0.362, allocations: 19.92 kB / 463.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005696/0.3626, allocations: 71.91 kB / 463.5 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.3627, allocations: 47.92 kB / 463.6 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.3628, allocations: 15.98 kB / 463.6 MB, free: 6.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003708/0.3632, allocations: 295.1 kB / 463.9 MB, free: 5.883 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3632, allocations: 0 / 463.9 MB, free: 5.883 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007258/0.3639, allocations: 183.8 kB / 464.1 MB, free: 5.703 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.006461/0.3703, allocations: 2.042 MB / 466.1 MB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.3732, allocations: 0.9715 MB / 467.1 MB, free: 2.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3732, allocations: 64 / 467.1 MB, free: 2.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.3748, allocations: 0.5916 MB / 467.7 MB, free: 2.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005502/0.3753, allocations: 96.53 kB / 467.8 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.3905, allocations: 6.072 MB / 473.8 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.3907, allocations: 236.9 kB / 474.1 MB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002247/0.391, allocations: 43.39 kB / 474.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.3912, allocations: 163.4 kB / 474.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3912, allocations: 0 / 474.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04781/0.439, allocations: 18.61 MB / 492.9 MB, free: 8.953 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/13.73, allocations: 14.42 kB / 492.9 MB, free: 8.945 MB / 398.1 MB " [Timeout remaining time 646] (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: 16.143951378995553] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.914356352994218 13.930975628 13.636326149 Calling exit ...