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.001254/0.001254, allocations: 116.6 kB / 18.49 MB, free: 4.59 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.001241/0.001241, allocations: 193 kB / 21.43 MB, free: 1.656 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.394/1.394, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.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.001447/0.001447, allocations: 55.92 kB / 366.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09433, allocations: 52.13 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005248/0.09958, allocations: 4.085 MB / 422.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.1014, allocations: 1.013 MB / 423.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002153/0.1016, allocations: 4 kB / 423.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002422/0.1019, allocations: 87.14 kB / 423.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.1022, allocations: 190.4 kB / 423.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.1027, allocations: 211.7 kB / 424.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007946/0.1035, allocations: 0.8056 MB / 424.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.1037, allocations: 120.9 kB / 425 MB, free: 6.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003901/0.1041, allocations: 318.9 kB / 425.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004257/0.1045, allocations: 362.6 kB / 425.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.1046, allocations: 80 kB / 425.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001272/0.1048, allocations: 84 kB / 425.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.1049, allocations: 159.5 kB / 426 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003294/0.1052, allocations: 334.5 kB / 426.3 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000856/0.1061, allocations: 0.8368 MB / 427.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1061, allocations: 0 / 427.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1061, allocations: 0 / 427.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.1061, allocations: 4 kB / 427.1 MB, free: 3.91 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.002647/0.1088, allocations: 1.038 MB / 428.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1088, allocations: 12.03 kB / 428.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.414e-05/0.1088, allocations: 13.19 kB / 428.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.052e-05/0.1089, allocations: 74.66 kB / 428.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.109, allocations: 64.5 kB / 428.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.1096, allocations: 426.2 kB / 428.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.428e-05/0.1097, allocations: 29.38 kB / 428.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.1097, allocations: 40.38 kB / 428.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.1112, allocations: 0.5911 MB / 429.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1112, allocations: 4 kB / 429.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.562e-05/0.1113, allocations: 16 kB / 429.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1113, allocations: 8 kB / 429.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.1132, allocations: 0.6245 MB / 430.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003744/0.117, allocations: 2.149 MB / 432.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003808/0.1208, allocations: 0.8067 MB / 433 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.1218, allocations: 373.2 kB / 433.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.1219, allocations: 12.27 kB / 433.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/0.123, allocations: 430.5 kB / 433.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.324e-06/0.123, allocations: 0 / 433.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.0139/0.1369, allocations: 2.279 MB / 436.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.357e-05/0.137, allocations: 85.11 kB / 436.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005692/0.1376, allocations: 409.9 kB / 436.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.967e-05/0.1376, allocations: 33.69 kB / 436.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002085/0.1378, allocations: 236.8 kB / 436.8 MB, free: 9.867 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.138, allocations: 138.8 kB / 437 MB, free: 9.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.1382, allocations: 70.06 kB / 437.1 MB, free: 9.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1384, allocations: 362.8 kB / 437.4 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009687/0.1393, allocations: 284.6 kB / 437.7 MB, free: 9.012 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.1403, allocations: 330.1 kB / 438 MB, free: 8.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00183/0.1422, allocations: 0.5834 MB / 438.6 MB, free: 8.086 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.1422, allocations: 4 kB / 438.6 MB, free: 8.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003563/0.1457, allocations: 0.9668 MB / 439.6 MB, free: 7.102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.912e-05/0.1458, allocations: 33.7 kB / 439.6 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1458, allocations: 0 / 439.6 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.1471, allocations: 400.5 kB / 440 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004856/0.1475, allocations: 83.92 kB / 440.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008392/0.1559, allocations: 3.687 MB / 443.8 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006935/0.1566, allocations: 87.84 kB / 443.8 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.405e-05/0.1567, allocations: 15.98 kB / 443.9 MB, free: 2.66 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.0002696/0.1569, allocations: 178.5 kB / 444 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.911e-05/0.157, allocations: 51.67 kB / 444.1 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.1572, allocations: 52.47 kB / 444.1 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1572, allocations: 4 kB / 444.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1572, allocations: 7.922 kB / 444.1 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1572, allocations: 4 kB / 444.1 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007459/0.1579, allocations: 0.6107 MB / 444.8 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.1579, allocations: 0 / 444.8 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004859/0.1584, allocations: 75.92 kB / 444.8 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/0.1596, allocations: 396.5 kB / 445.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.1596, allocations: 7.984 kB / 445.2 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1823/0.342, allocations: 3.655 MB / 448.9 MB, free: 29.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.342, allocations: 4.656 kB / 448.9 MB, free: 29.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005287/0.3472, allocations: 1.452 MB / 450.3 MB, free: 29.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002237/0.3475, allocations: 179.5 kB / 450.5 MB, free: 29.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.165e-05/0.3475, allocations: 7.547 kB / 450.5 MB, free: 29.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005498/0.3481, allocations: 70.19 kB / 450.6 MB, free: 29.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.3482, allocations: 52.95 kB / 450.6 MB, free: 29.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.3483, allocations: 12.5 kB / 450.7 MB, free: 29.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00031/0.3486, allocations: 293.7 kB / 450.9 MB, free: 29.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3486, allocations: 0 / 450.9 MB, free: 29.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005858/0.3492, allocations: 174.9 kB / 451.1 MB, free: 29.11 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.005894/0.3551, allocations: 2.007 MB / 453.1 MB, free: 28.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002779/0.3579, allocations: 0.9061 MB / 454 MB, free: 28.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3579, allocations: 0 / 454 MB, free: 28.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.3596, allocations: 0.5489 MB / 454.6 MB, free: 28.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005909/0.3602, allocations: 91.09 kB / 454.7 MB, free: 28.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.3745, allocations: 5.799 MB / 460.5 MB, free: 25.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.3748, allocations: 0.8382 MB / 461.3 MB, free: 24.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002491/0.375, allocations: 43.69 kB / 461.3 MB, free: 24.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.3752, allocations: 166.9 kB / 461.5 MB, free: 24.76 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3752, allocations: 0 / 461.5 MB, free: 24.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04377/0.419, allocations: 18.43 MB / 479.9 MB, free: 16.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.71, allocations: 4 kB / 479.9 MB, free: 16.14 MB / 366.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.036905939981807] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.856495550018735 12.865585001 12.757476884 Calling exit ...