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.001889/0.001889, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002152/0.002152, allocations: 181.7 kB / 23.72 MB, free: 4.699 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.38/1.38, allocations: 225.6 MB / 252.5 MB, free: 13.02 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 47.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2438, allocations: 52.18 MB / 422.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005352/0.2492, allocations: 4.091 MB / 426.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.2511, allocations: 1.024 MB / 427.8 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.2514, allocations: 7.938 kB / 427.8 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002539/0.2516, allocations: 87.14 kB / 427.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003622/0.252, allocations: 182.5 kB / 428 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005435/0.2525, allocations: 223.6 kB / 428.2 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008745/0.2534, allocations: 0.8056 MB / 429 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.2537, allocations: 124.8 kB / 429.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003979/0.2541, allocations: 323 kB / 429.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004644/0.2545, allocations: 346.7 kB / 429.8 MB, free: 7.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.2546, allocations: 80 kB / 429.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.2547, allocations: 84 kB / 430 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.2549, allocations: 167.4 kB / 430.1 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000311/0.2552, allocations: 330.5 kB / 430.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008762/0.2561, allocations: 0.8494 MB / 431.3 MB, free: 5.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.2561, allocations: 0 / 431.3 MB, free: 5.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2561, allocations: 0 / 431.3 MB, free: 5.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.2561, allocations: 0 / 431.3 MB, free: 5.98 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.002664/0.2588, allocations: 0.9662 MB / 432.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.2588, allocations: 8.031 kB / 432.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.756e-05/0.2589, allocations: 74.72 kB / 432.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.259, allocations: 60.56 kB / 432.4 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006309/0.2596, allocations: 364.4 kB / 432.8 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.2597, allocations: 29.38 kB / 432.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.807e-05/0.2598, allocations: 44.36 kB / 432.9 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.2612, allocations: 0.5913 MB / 433.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2612, allocations: 0 / 433.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.68e-05/0.2612, allocations: 16 kB / 433.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.2612, allocations: 16 kB / 433.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001831/0.2631, allocations: 0.6205 MB / 434.1 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003882/0.2669, allocations: 2.103 MB / 436.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003847/0.2708, allocations: 0.8042 MB / 437 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.2718, allocations: 368.2 kB / 437.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.846e-05/0.2719, allocations: 8.312 kB / 437.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.273, allocations: 430.6 kB / 437.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.753e-06/0.273, allocations: 3.938 kB / 437.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01425/0.2872, allocations: 2.206 MB / 440 MB, free: 13.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.184e-05/0.2873, allocations: 81.11 kB / 440.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005573/0.2878, allocations: 410 kB / 440.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.879e-05/0.2879, allocations: 33.7 kB / 440.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.2881, allocations: 232.8 kB / 440.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.2883, allocations: 142.8 kB / 440.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.2885, allocations: 70.06 kB / 441 MB, free: 12.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.2886, allocations: 362.7 kB / 441.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009044/0.2895, allocations: 288.6 kB / 441.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009393/0.2905, allocations: 341.8 kB / 441.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.2921, allocations: 0.5759 MB / 442.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2921, allocations: 0 / 442.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003553/0.2957, allocations: 0.9707 MB / 443.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.951e-05/0.2958, allocations: 33.7 kB / 443.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2958, allocations: 0 / 443.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.297, allocations: 396 kB / 443.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.2974, allocations: 95.86 kB / 444 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008704/0.3062, allocations: 3.572 MB / 447.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007049/0.3069, allocations: 79.86 kB / 447.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/0.3069, allocations: 19.98 kB / 447.6 MB, free: 5.207 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.0002636/0.3072, allocations: 175 kB / 447.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.167e-05/0.3072, allocations: 51.67 kB / 447.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.3074, allocations: 52.47 kB / 447.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.3074, allocations: 4 kB / 447.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.3074, allocations: 3.984 kB / 447.9 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3074, allocations: 0 / 447.9 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007373/0.3081, allocations: 0.5901 MB / 448.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3081, allocations: 3.938 kB / 448.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005541/0.3087, allocations: 79.86 kB / 448.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.3098, allocations: 400.2 kB / 449 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.331e-05/0.3099, allocations: 11.98 kB / 449 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008549/0.3184, allocations: 3.559 MB / 452.6 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3184, allocations: 0 / 452.6 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00606/0.3245, allocations: 1.453 MB / 454 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002772/0.3247, allocations: 107.6 kB / 454.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.3248, allocations: 19.86 kB / 454.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000602/0.3254, allocations: 63.92 kB / 454.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.3256, allocations: 55.91 kB / 454.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.576e-05/0.3257, allocations: 15.98 kB / 454.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003891/0.3261, allocations: 287.2 kB / 454.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3261, allocations: 0 / 454.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000697/0.3267, allocations: 171.9 kB / 454.7 MB, free: 13.95 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.006195/0.3329, allocations: 2.01 MB / 456.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.3356, allocations: 0.9034 MB / 457.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3356, allocations: 0 / 457.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.3371, allocations: 0.545 MB / 458.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000582/0.3377, allocations: 93.42 kB / 458.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0155/0.3532, allocations: 5.804 MB / 464.1 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000562/0.3537, allocations: 0.8394 MB / 464.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002451/0.354, allocations: 43.39 kB / 465 MB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002752/0.3543, allocations: 159.4 kB / 465.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3543, allocations: 0 / 465.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05843/0.4127, allocations: 18.75 MB / 483.9 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.56, allocations: 6.984 kB / 483.9 MB, free: 0.8164 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.90374947199598] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.685548772104084 13.701910311 13.442599536 Calling exit ...