Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000775/0.000775, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007945/0.0007945, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8554/0.8554, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 324.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.112e-05/2.259e-05, allocations: 6.219 kB / 324.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003866/0.003889, allocations: 3.723 MB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.005794, allocations: 1.036 MB / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002871/0.006081, allocations: 7.938 kB / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.006298, allocations: 95.06 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002788/0.006577, allocations: 182.3 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005261/0.007103, allocations: 243.5 kB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008379/0.007941, allocations: 0.848 MB / 330.7 MB, free: 9.633 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.008288, allocations: 113.5 kB / 330.8 MB, free: 9.523 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009734/0.009261, allocations: 467 kB / 331.3 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003984/0.00966, allocations: 283.3 kB / 331.5 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.009773, allocations: 84 kB / 331.6 MB, free: 8.707 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.009899, allocations: 84 kB / 331.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.834e-05/0.009987, allocations: 171.4 kB / 331.9 MB, free: 8.457 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.01017, allocations: 243.4 kB / 332.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007339/0.0109, allocations: 0.9076 MB / 333 MB, free: 7.309 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.01091, allocations: 0 / 333 MB, free: 7.309 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.01091, allocations: 0 / 333 MB, free: 7.309 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.01093, allocations: 0 / 333 MB, free: 7.309 MB / 298.7 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.002096/0.01303, allocations: 0.973 MB / 334 MB, free: 6.301 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.01308, allocations: 12.03 kB / 334 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.011e-05/0.01316, allocations: 78.7 kB / 334.1 MB, free: 6.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.01338, allocations: 68.56 kB / 334.2 MB, free: 6.137 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005536/0.01393, allocations: 367.6 kB / 334.5 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.412e-05/0.01397, allocations: 29.38 kB / 334.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.89e-05/0.01403, allocations: 36.38 kB / 334.6 MB, free: 5.688 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009132/0.01494, allocations: 0.6285 MB / 335.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.01495, allocations: 192 / 335.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.88e-05/0.01499, allocations: 20.12 kB / 335.2 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.015, allocations: 12 kB / 335.2 MB, free: 5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.01604, allocations: 0.6362 MB / 335.9 MB, free: 4.363 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002416/0.01846, allocations: 1.963 MB / 337.8 MB, free: 2.309 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.0203, allocations: 0.8275 MB / 338.7 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.02087, allocations: 373.3 kB / 339 MB, free: 1.105 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.02091, allocations: 8.328 kB / 339 MB, free: 1.098 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006937/0.0216, allocations: 464.2 kB / 339.5 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.583e-06/0.0216, allocations: 0 / 339.5 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.006358/0.02796, allocations: 2.305 MB / 341.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.02802, allocations: 81.11 kB / 341.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.02838, allocations: 417.9 kB / 342.3 MB, free: 13.78 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.02842, allocations: 37.7 kB / 342.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.02855, allocations: 232.9 kB / 342.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.093e-05/0.02864, allocations: 146.7 kB / 342.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.02876, allocations: 74.06 kB / 342.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.02886, allocations: 354.7 kB / 343.1 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005183/0.02937, allocations: 326.4 kB / 343.4 MB, free: 12.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005163/0.02989, allocations: 393.9 kB / 343.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009321/0.03082, allocations: 0.6029 MB / 344.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.03083, allocations: 0 / 344.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001769/0.03259, allocations: 1.027 MB / 345.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.03263, allocations: 33.7 kB / 345.5 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.03264, allocations: 0 / 345.5 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007413/0.03338, allocations: 436.4 kB / 345.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.03361, allocations: 87.86 kB / 346 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004653/0.03826, allocations: 3.639 MB / 349.6 MB, free: 6.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003426/0.03861, allocations: 95.73 kB / 349.7 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.03863, allocations: 8 kB / 349.7 MB, free: 6.125 MB / 314.7 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.0002123/0.03884, allocations: 185.8 kB / 349.9 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.072e-05/0.03889, allocations: 47.67 kB / 350 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.415e-05/0.03896, allocations: 56.53 kB / 350 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.03896, allocations: 4 kB / 350 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.03896, allocations: 4 kB / 350 MB, free: 5.824 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.03897, allocations: 3.984 kB / 350 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004264/0.0394, allocations: 492.8 kB / 350.5 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.0394, allocations: 3.938 kB / 350.5 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002246/0.03962, allocations: 75.92 kB / 350.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007246/0.04035, allocations: 436.4 kB / 351 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.04038, allocations: 11.98 kB / 351 MB, free: 4.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004439/0.04482, allocations: 3.627 MB / 354.6 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.04482, allocations: 0 / 354.6 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.04788, allocations: 1.496 MB / 356.1 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.04806, allocations: 99.62 kB / 356.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.417e-05/0.0481, allocations: 12 kB / 356.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002488/0.04835, allocations: 79.84 kB / 356.3 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.04846, allocations: 55.84 kB / 356.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.04849, allocations: 15.98 kB / 356.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002247/0.04871, allocations: 291.2 kB / 356.7 MB, free: 14.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04871, allocations: 0 / 356.7 MB, free: 14.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000461/0.04917, allocations: 179.8 kB / 356.9 MB, free: 14.8 MB / 330.7 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.003203/0.05238, allocations: 2.056 MB / 358.9 MB, free: 12.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001644/0.05402, allocations: 0.9675 MB / 359.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.05402, allocations: 0 / 359.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008615/0.05488, allocations: 0.5685 MB / 360.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.05531, allocations: 89.55 kB / 360.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009128/0.06444, allocations: 6.026 MB / 366.6 MB, free: 4.887 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.06465, allocations: 240.8 kB / 366.8 MB, free: 4.625 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002241/0.06487, allocations: 39.39 kB / 366.8 MB, free: 4.586 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.06508, allocations: 176.4 kB / 367 MB, free: 4.414 MB / 330.7 MB Notification: Performance of SimCode: time 1.793e-06/0.06508, allocations: 0 / 367 MB, free: 4.414 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.1016, allocations: 19.21 MB / 386.2 MB, free: 1.43 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/8.033, allocations: 14.44 kB / 386.2 MB, free: 1.418 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.612346321344376] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 8.133770933374763 8.145015379 8.131922525 Calling exit ...