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.001748/0.001748, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.002172/0.002172, allocations: 212.7 kB / 23.73 MB, free: 4.531 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.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001487/0.001487, allocations: 43.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2708, allocations: 53.35 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00534/0.2761, allocations: 3.732 MB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.2783, allocations: 1.021 MB / 435.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.2786, allocations: 8 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002528/0.2788, allocations: 87.14 kB / 435.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003696/0.2792, allocations: 194.4 kB / 436.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.2798, allocations: 231.6 kB / 436.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008636/0.2806, allocations: 0.8172 MB / 437.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.2809, allocations: 129.4 kB / 437.3 MB, free: 436 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000436/0.2813, allocations: 323 kB / 437.6 MB, free: 112 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004807/0.2818, allocations: 366.6 kB / 438 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.2819, allocations: 84 kB / 438 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.2821, allocations: 84 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.2822, allocations: 163.5 kB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003167/0.2826, allocations: 278.8 kB / 438.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000953/0.2835, allocations: 0.8679 MB / 439.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2835, allocations: 0 / 439.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.2835, allocations: 4 kB / 439.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2835, allocations: 4 kB / 439.4 MB, free: 14.27 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.002772/0.2863, allocations: 0.9779 MB / 440.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2863, allocations: 8.031 kB / 440.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.2864, allocations: 74.72 kB / 440.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002375/0.2867, allocations: 72.55 kB / 440.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006859/0.2874, allocations: 372.4 kB / 440.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.2874, allocations: 29.38 kB / 440.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.526e-05/0.2875, allocations: 36.38 kB / 441 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.289, allocations: 0.6281 MB / 441.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.289, allocations: 0 / 441.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.289, allocations: 16 kB / 441.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.289, allocations: 12 kB / 441.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.2909, allocations: 0.6362 MB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003832/0.2948, allocations: 1.959 MB / 444.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004037/0.2988, allocations: 0.8314 MB / 445.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009964/0.2998, allocations: 369.3 kB / 445.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.896e-05/0.2998, allocations: 12.31 kB / 445.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001184/0.301, allocations: 468.2 kB / 445.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.124e-06/0.301, allocations: 0 / 445.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01565/0.3167, allocations: 2.305 MB / 448.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.3167, allocations: 81.11 kB / 448.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.3173, allocations: 417.9 kB / 448.7 MB, free: 4.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.571e-05/0.3174, allocations: 37.7 kB / 448.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.3176, allocations: 228.9 kB / 448.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.3177, allocations: 142.8 kB / 449.1 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/0.3179, allocations: 70.06 kB / 449.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3181, allocations: 358.7 kB / 449.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009176/0.319, allocations: 330.3 kB / 449.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009642/0.32, allocations: 389.5 kB / 450.2 MB, free: 3.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/0.3217, allocations: 0.6107 MB / 450.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3217, allocations: 4 kB / 450.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003654/0.3254, allocations: 1.019 MB / 451.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/0.3254, allocations: 29.7 kB / 451.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3254, allocations: 0 / 451.9 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.3267, allocations: 444.4 kB / 452.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/0.3272, allocations: 91.86 kB / 452.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009104/0.3363, allocations: 3.631 MB / 456 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007482/0.337, allocations: 95.73 kB / 456.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.728e-05/0.3371, allocations: 12 kB / 456.1 MB, free: 13.09 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.0003311/0.3374, allocations: 186.5 kB / 456.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.3375, allocations: 47.67 kB / 456.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.3376, allocations: 56.53 kB / 456.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3377, allocations: 4 kB / 456.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3377, allocations: 0 / 456.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.3377, allocations: 3.984 kB / 456.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006635/0.3383, allocations: 496.5 kB / 456.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3383, allocations: 0 / 456.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004849/0.3388, allocations: 79.92 kB / 457 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.34, allocations: 432.5 kB / 457.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.3401, allocations: 11.98 kB / 457.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008663/0.3487, allocations: 3.645 MB / 461.1 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3487, allocations: 4.031 kB / 461.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006119/0.3549, allocations: 1.5 MB / 462.6 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003111/0.3552, allocations: 99.53 kB / 462.7 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.65e-05/0.3553, allocations: 15.94 kB / 462.7 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006023/0.3559, allocations: 71.91 kB / 462.8 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.356, allocations: 51.91 kB / 462.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.277e-05/0.3561, allocations: 11.98 kB / 462.8 MB, free: 6.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.3564, allocations: 295.2 kB / 463.1 MB, free: 5.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3564, allocations: 4 kB / 463.1 MB, free: 5.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006401/0.3571, allocations: 179.8 kB / 463.3 MB, free: 5.754 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.006436/0.3635, allocations: 2.052 MB / 465.3 MB, free: 3.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.3662, allocations: 0.9714 MB / 466.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3662, allocations: 0 / 466.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001632/0.3678, allocations: 0.5723 MB / 466.9 MB, free: 2.082 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000581/0.3684, allocations: 96.25 kB / 467 MB, free: 1.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0159/0.3843, allocations: 6.066 MB / 473 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.3846, allocations: 236.8 kB / 473.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002474/0.3848, allocations: 51.33 kB / 473.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/0.3851, allocations: 171.4 kB / 473.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3851, allocations: 0 / 473.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05586/0.441, allocations: 19.23 MB / 492.7 MB, free: 8.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.05, allocations: 9.438 kB / 492.7 MB, free: 8.34 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.342780882027] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.176950051012682 13.204946622 12.9163156 Calling exit ...