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.001239/0.001239, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001329/0.001329, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.36/1.36, allocations: 225.6 MB / 253.3 MB, free: 13.01 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.001444/0.001444, allocations: 43.92 kB / 371.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2269, allocations: 52.19 MB / 423.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005383/0.2323, allocations: 4.08 MB / 427.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.234, allocations: 1.024 MB / 428.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.2342, allocations: 11.94 kB / 428.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.2345, allocations: 83.14 kB / 428.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003093/0.2348, allocations: 190.5 kB / 428.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005269/0.2353, allocations: 223.6 kB / 429 MB, free: 9.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008592/0.2362, allocations: 0.8056 MB / 429.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003053/0.2365, allocations: 118.5 kB / 429.9 MB, free: 8.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.2369, allocations: 319 kB / 430.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004668/0.2373, allocations: 358.6 kB / 430.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.2375, allocations: 84 kB / 430.7 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.2376, allocations: 80 kB / 430.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.2377, allocations: 159.4 kB / 430.9 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003045/0.238, allocations: 334.5 kB / 431.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008224/0.2388, allocations: 0.8482 MB / 432.1 MB, free: 5.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2388, allocations: 4 kB / 432.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2388, allocations: 0 / 432.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.2388, allocations: 0 / 432.1 MB, free: 5.977 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.002521/0.2414, allocations: 0.9662 MB / 433.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2414, allocations: 8.031 kB / 433.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.055e-05/0.2414, allocations: 13.19 kB / 433.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.16e-05/0.2415, allocations: 74.72 kB / 433.2 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.2416, allocations: 64.56 kB / 433.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005813/0.2422, allocations: 360.4 kB / 433.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.2423, allocations: 29.38 kB / 433.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.719e-05/0.2423, allocations: 36.38 kB / 433.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.2438, allocations: 0.5989 MB / 434.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2439, allocations: 4 kB / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.15e-05/0.2439, allocations: 12 kB / 434.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.2439, allocations: 8 kB / 434.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001882/0.2458, allocations: 0.6322 MB / 434.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003832/0.2496, allocations: 2.099 MB / 437 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003725/0.2534, allocations: 0.8042 MB / 437.8 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.2544, allocations: 370.9 kB / 438.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.2544, allocations: 8.234 kB / 438.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.2556, allocations: 434.5 kB / 438.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.004e-06/0.2556, allocations: 4 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01354/0.2691, allocations: 2.191 MB / 440.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/0.2692, allocations: 85.11 kB / 440.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000576/0.2698, allocations: 405.9 kB / 441.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.483e-05/0.2699, allocations: 37.7 kB / 441.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.2701, allocations: 244.8 kB / 441.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.2702, allocations: 138.8 kB / 441.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.2704, allocations: 70.06 kB / 441.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2706, allocations: 354.8 kB / 442.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009323/0.2715, allocations: 288.6 kB / 442.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009351/0.2724, allocations: 337.8 kB / 442.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.2742, allocations: 0.5759 MB / 443.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2742, allocations: 3.938 kB / 443.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003598/0.2778, allocations: 0.9707 MB / 444.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.754e-05/0.2779, allocations: 33.7 kB / 444.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.2779, allocations: 4 kB / 444.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.2791, allocations: 399.9 kB / 444.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005026/0.2796, allocations: 87.86 kB / 444.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008321/0.288, allocations: 3.572 MB / 448.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006929/0.2887, allocations: 91.8 kB / 448.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/0.2887, allocations: 15.98 kB / 448.4 MB, free: 5.188 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.000276/0.289, allocations: 171 kB / 448.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-05/0.2891, allocations: 51.67 kB / 448.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/0.2892, allocations: 56.47 kB / 448.7 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2892, allocations: 4 kB / 448.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2892, allocations: 7.938 kB / 448.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2892, allocations: 3.984 kB / 448.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007423/0.2899, allocations: 0.5823 MB / 449.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2899, allocations: 0 / 449.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/0.2904, allocations: 87.86 kB / 449.4 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.2915, allocations: 396.3 kB / 449.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/0.2916, allocations: 8 kB / 449.8 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007951/0.2995, allocations: 3.562 MB / 453.4 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2995, allocations: 0 / 453.4 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005604/0.3051, allocations: 1.457 MB / 454.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.3054, allocations: 99.59 kB / 454.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.058e-05/0.3055, allocations: 15.94 kB / 454.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000548/0.306, allocations: 71.91 kB / 455 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.3062, allocations: 51.91 kB / 455.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.234e-05/0.3062, allocations: 19.92 kB / 455.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003548/0.3066, allocations: 287.2 kB / 455.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3066, allocations: 4 kB / 455.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005912/0.3072, allocations: 167.9 kB / 455.5 MB, free: 13.93 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.005943/0.3131, allocations: 2.018 MB / 457.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002641/0.3157, allocations: 0.9033 MB / 458.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3157, allocations: 3.938 kB / 458.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.3172, allocations: 0.5372 MB / 459 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000497/0.3177, allocations: 89.48 kB / 459.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/0.3325, allocations: 5.807 MB / 464.9 MB, free: 4.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.333, allocations: 0.8316 MB / 465.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002313/0.3332, allocations: 43.41 kB / 465.7 MB, free: 3.496 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002612/0.3335, allocations: 167.4 kB / 465.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3335, allocations: 0 / 465.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04882/0.3823, allocations: 18.77 MB / 484.7 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.26, allocations: 14.69 kB / 484.7 MB, free: 0.7852 MB / 382.1 MB " [Timeout remaining time 647] (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.521550286968704] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.439097644004505 13.455747557 13.213670103 Calling exit ...