Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002023/0.002023, allocations: 193.5 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 43.92 kB / 371.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2445, allocations: 52.17 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005222/0.2497, allocations: 3.68 MB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.2515, allocations: 0.9778 MB / 428 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.2517, allocations: 7.938 kB / 428 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.252, allocations: 87.14 kB / 428.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003501/0.2523, allocations: 190.4 kB / 428.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005116/0.2528, allocations: 223.5 kB / 428.5 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008766/0.2537, allocations: 0.8017 MB / 429.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.254, allocations: 129.4 kB / 429.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004366/0.2544, allocations: 319 kB / 429.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004486/0.2548, allocations: 354.7 kB / 430.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.255, allocations: 80 kB / 430.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.2551, allocations: 80 kB / 430.2 MB, free: 7.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.2553, allocations: 167.4 kB / 430.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003148/0.2556, allocations: 274.9 kB / 430.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009191/0.2565, allocations: 0.8485 MB / 431.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2565, allocations: 4 kB / 431.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2565, allocations: 0 / 431.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.2565, allocations: 3.938 kB / 431.5 MB, free: 6.195 MB / 334.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.002707/0.2592, allocations: 0.9624 MB / 432.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2593, allocations: 8.031 kB / 432.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.793e-05/0.2593, allocations: 9.188 kB / 432.5 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.554e-05/0.2594, allocations: 78.7 kB / 432.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.2595, allocations: 64.56 kB / 432.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000647/0.2602, allocations: 364.4 kB / 433 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.2602, allocations: 33.38 kB / 433 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.188e-05/0.2603, allocations: 36.38 kB / 433.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.2618, allocations: 0.6201 MB / 433.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.2618, allocations: 0 / 433.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.2619, allocations: 16 kB / 433.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2619, allocations: 8 kB / 433.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.2637, allocations: 0.6283 MB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003754/0.2675, allocations: 1.951 MB / 436.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003945/0.2714, allocations: 0.8025 MB / 437.1 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.2724, allocations: 365.3 kB / 437.5 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.2725, allocations: 4.328 kB / 437.5 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/0.2736, allocations: 452.2 kB / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.244e-06/0.2737, allocations: 0 / 437.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01475/0.2884, allocations: 2.199 MB / 440.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.958e-05/0.2885, allocations: 85.09 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005344/0.289, allocations: 409.9 kB / 440.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.892e-05/0.2891, allocations: 41.64 kB / 440.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.2893, allocations: 240.8 kB / 440.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.2894, allocations: 134.8 kB / 441 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.2896, allocations: 78.02 kB / 441.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.2898, allocations: 350.7 kB / 441.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009428/0.2907, allocations: 330.2 kB / 441.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009514/0.2917, allocations: 389.2 kB / 442.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.2934, allocations: 0.5759 MB / 442.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2934, allocations: 0 / 442.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003604/0.297, allocations: 0.9958 MB / 443.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.297, allocations: 36.05 kB / 443.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.297, allocations: 0 / 443.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.2983, allocations: 396.5 kB / 444.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.2988, allocations: 91.86 kB / 444.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008556/0.3073, allocations: 3.499 MB / 447.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007001/0.308, allocations: 91.8 kB / 447.8 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.3081, allocations: 8 kB / 447.8 MB, free: 5.449 MB / 350.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.0002662/0.3083, allocations: 179 kB / 448 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.322e-05/0.3084, allocations: 51.67 kB / 448 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.3086, allocations: 56.45 kB / 448.1 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3086, allocations: 4 kB / 448.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.3086, allocations: 0 / 448.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3086, allocations: 0 / 448.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006294/0.3092, allocations: 488.7 kB / 448.6 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3092, allocations: 0 / 448.6 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004798/0.3097, allocations: 83.86 kB / 448.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.3108, allocations: 396.6 kB / 449 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.3108, allocations: 7.938 kB / 449 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008187/0.319, allocations: 3.491 MB / 452.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.319, allocations: 4.094 kB / 452.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00596/0.325, allocations: 1.457 MB / 454 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002976/0.3253, allocations: 107.6 kB / 454.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/0.3254, allocations: 11.94 kB / 454.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005794/0.3259, allocations: 67.92 kB / 454.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.3261, allocations: 55.91 kB / 454.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.045e-05/0.3261, allocations: 11.98 kB / 454.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.3265, allocations: 299 kB / 454.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3265, allocations: 0 / 454.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006143/0.3271, allocations: 171.9 kB / 454.7 MB, free: 14.36 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.006446/0.3336, allocations: 2.006 MB / 456.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.3363, allocations: 0.9284 MB / 457.6 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.3363, allocations: 0 / 457.6 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.3378, allocations: 0.545 MB / 458.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.3384, allocations: 93.98 kB / 458.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.3541, allocations: 5.921 MB / 464.2 MB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.3544, allocations: 228.8 kB / 464.4 MB, free: 4.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002709/0.3547, allocations: 43.41 kB / 464.5 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.3549, allocations: 163.4 kB / 464.6 MB, free: 4.207 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3549, allocations: 0 / 464.6 MB, free: 4.207 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04838/0.4033, allocations: 18.34 MB / 483 MB, free: 2.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.63, allocations: 10.98 kB / 483 MB, free: 2.16 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.957259479910135] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.80550347699318 13.820547942 13.561024996 Calling exit ...