Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00177/0.00177, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001937/0.001937, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 67.89 kB / 373.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1175, allocations: 53.32 MB / 426.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006814/0.1243, allocations: 4.118 MB / 430.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.1268, allocations: 1.063 MB / 431.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005683/0.1274, allocations: 11.94 kB / 431.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003876/0.1278, allocations: 87.12 kB / 432 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006645/0.1284, allocations: 182.4 kB / 432.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007192/0.1291, allocations: 231.6 kB / 432.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.1304, allocations: 0.829 MB / 433.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003136/0.1307, allocations: 120.8 kB / 433.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006848/0.1314, allocations: 334.9 kB / 433.6 MB, free: 14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006354/0.132, allocations: 354.6 kB / 434 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002059/0.1322, allocations: 80 kB / 434.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.1325, allocations: 88 kB / 434.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.1327, allocations: 163.5 kB / 434.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004905/0.1332, allocations: 342.4 kB / 434.6 MB, free: 13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.1344, allocations: 0.8602 MB / 435.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1344, allocations: 0 / 435.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1344, allocations: 0 / 435.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.086e-05/0.1344, allocations: 0 / 435.5 MB, free: 12.13 MB / 366.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.003123/0.1376, allocations: 1.045 MB / 436.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.1376, allocations: 16.03 kB / 436.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1377, allocations: 70.7 kB / 436.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002277/0.1379, allocations: 72.5 kB / 436.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007266/0.1387, allocations: 434.2 kB / 437.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/0.1387, allocations: 29.38 kB / 437.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.585e-05/0.1388, allocations: 36.38 kB / 437.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.1402, allocations: 0.6069 MB / 437.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.1402, allocations: 3.938 kB / 437.8 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.82e-05/0.1403, allocations: 16 kB / 437.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1403, allocations: 8 kB / 437.8 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.1422, allocations: 0.6401 MB / 438.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/0.1461, allocations: 2.173 MB / 440.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003939/0.1501, allocations: 0.8357 MB / 441.5 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.1511, allocations: 369.3 kB / 441.8 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.23e-05/0.1511, allocations: 4.328 kB / 441.8 MB, free: 5.559 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.1523, allocations: 438.6 kB / 442.3 MB, free: 5.113 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.894e-06/0.1523, allocations: 0 / 442.3 MB, free: 5.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.01509/0.1674, allocations: 2.383 MB / 444.6 MB, free: 2.699 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/0.1675, allocations: 81.11 kB / 444.7 MB, free: 2.602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006702/0.1682, allocations: 421.9 kB / 445.1 MB, free: 2.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.922e-05/0.1682, allocations: 37.7 kB / 445.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.1685, allocations: 236.9 kB / 445.4 MB, free: 1.902 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.1687, allocations: 142.8 kB / 445.5 MB, free: 1.762 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002024/0.1689, allocations: 70.05 kB / 445.6 MB, free: 1.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002187/0.1691, allocations: 358.7 kB / 446 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009526/0.17, allocations: 296.6 kB / 446.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009609/0.171, allocations: 338.1 kB / 446.6 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.1727, allocations: 0.599 MB / 447.2 MB, free: 88 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1727, allocations: 4 kB / 447.2 MB, free: 84 kB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.2141/0.3868, allocations: 0.9837 MB / 448.2 MB, free: 24.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.3869, allocations: 35.5 kB / 448.2 MB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3869, allocations: 0 / 448.2 MB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.3881, allocations: 436 kB / 448.6 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/0.3885, allocations: 91.03 kB / 448.7 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008137/0.3967, allocations: 3.813 MB / 452.5 MB, free: 23.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007859/0.3975, allocations: 90.62 kB / 452.6 MB, free: 23.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/0.3975, allocations: 20.05 kB / 452.6 MB, free: 23.1 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.0002423/0.3977, allocations: 171.1 kB / 452.8 MB, free: 22.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.3978, allocations: 55.91 kB / 452.9 MB, free: 22.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.3979, allocations: 54.39 kB / 452.9 MB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3979, allocations: 8.984 kB / 452.9 MB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3979, allocations: 0 / 452.9 MB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.398, allocations: 2.203 kB / 452.9 MB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006742/0.3986, allocations: 0.6259 MB / 453.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3986, allocations: 2.625 kB / 453.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004743/0.3991, allocations: 80.03 kB / 453.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.4003, allocations: 431.8 kB / 454.1 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.4003, allocations: 17.09 kB / 454.1 MB, free: 22.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008099/0.4084, allocations: 3.811 MB / 457.9 MB, free: 20 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.4084, allocations: 0.5625 kB / 457.9 MB, free: 20 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005795/0.4142, allocations: 1.49 MB / 459.4 MB, free: 19.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.4145, allocations: 183.1 kB / 459.6 MB, free: 19.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.919e-05/0.4146, allocations: 12.16 kB / 459.6 MB, free: 19.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000568/0.4151, allocations: 77.09 kB / 459.6 MB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.4153, allocations: 54.22 kB / 459.7 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.4154, allocations: 14.66 kB / 459.7 MB, free: 19.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003345/0.4157, allocations: 292.5 kB / 460 MB, free: 19.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4157, allocations: 1.625 kB / 460 MB, free: 19.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.4164, allocations: 178.7 kB / 460.2 MB, free: 19.17 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.006173/0.4225, allocations: 2.043 MB / 462.2 MB, free: 18.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0027/0.4252, allocations: 0.9422 MB / 463.2 MB, free: 17.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4253, allocations: 0 / 463.2 MB, free: 17.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.4269, allocations: 0.5763 MB / 463.7 MB, free: 17.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005737/0.4275, allocations: 88.02 kB / 463.8 MB, free: 17.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.4425, allocations: 5.96 MB / 469.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.443, allocations: 0.8426 MB / 470.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002808/0.4433, allocations: 46.14 kB / 470.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000239/0.4435, allocations: 163.9 kB / 470.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4435, allocations: 1.406 kB / 470.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04804/0.4915, allocations: 18.63 MB / 489.5 MB, free: 1.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.02, allocations: 7.562 kB / 489.5 MB, free: 1.723 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.452715721912682] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.116921636741608 13.14287488 13.003897182 Calling exit ...