Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002303/0.002303, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 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.001851/0.001851, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.831/1.831, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 51.94 kB / 347.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4116, allocations: 49.16 MB / 396.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007354/0.4189, allocations: 3.923 MB / 400.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002838/0.4218, allocations: 1.037 MB / 401.3 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004739/0.4222, allocations: 6.594 kB / 401.3 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003086/0.4225, allocations: 90.95 kB / 401.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004256/0.423, allocations: 174.2 kB / 401.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007225/0.4237, allocations: 208.1 kB / 401.8 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009707/0.4247, allocations: 0.757 MB / 402.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.425, allocations: 131.1 kB / 402.7 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005096/0.4255, allocations: 296.4 kB / 403 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004982/0.426, allocations: 336 kB / 403.3 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.4261, allocations: 76.97 kB / 403.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.4262, allocations: 76.88 kB / 403.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.4264, allocations: 149 kB / 403.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003123/0.4267, allocations: 322.3 kB / 403.9 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.4278, allocations: 0.8015 MB / 404.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.4278, allocations: 1.375 kB / 404.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4278, allocations: 0 / 404.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.4278, allocations: 0.6562 kB / 404.7 MB, free: 3.691 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002937/0.4307, allocations: 0.916 MB / 405.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.4308, allocations: 14.08 kB / 405.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.915e-05/0.4309, allocations: 75.19 kB / 405.7 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.431, allocations: 60.5 kB / 405.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007238/0.4318, allocations: 344.7 kB / 406.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.814e-05/0.4318, allocations: 28.72 kB / 406.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.334e-05/0.4319, allocations: 41.39 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.4334, allocations: 0.5587 MB / 406.7 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.4334, allocations: 5.984 kB / 406.7 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.082e-05/0.4335, allocations: 11.34 kB / 406.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.4335, allocations: 8.781 kB / 406.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.4353, allocations: 0.5783 MB / 407.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004141/0.4394, allocations: 1.962 MB / 409.3 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003833/0.4433, allocations: 0.7608 MB / 410.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/0.4442, allocations: 345.7 kB / 410.4 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.4442, allocations: 5.125 kB / 410.4 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.4453, allocations: 399.4 kB / 410.8 MB, free: 240 kB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 3.817e-06/0.4453, allocations: 0 / 410.8 MB, free: 240 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.01044/0.4558, allocations: 1.716 MB / 412.5 MB, free: 15.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.4558, allocations: 86.64 kB / 412.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006782/0.4565, allocations: 387.9 kB / 413 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.585e-05/0.4566, allocations: 32.55 kB / 413 MB, free: 15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002446/0.4568, allocations: 228.4 kB / 413.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.457, allocations: 137.8 kB / 413.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.4572, allocations: 69.44 kB / 413.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.4574, allocations: 356 kB / 413.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000856/0.4582, allocations: 267.5 kB / 414 MB, free: 14.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008751/0.4591, allocations: 314 kB / 414.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.4608, allocations: 0.5429 MB / 414.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4608, allocations: 0 / 414.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005044/0.4658, allocations: 1.051 MB / 415.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.948e-05/0.4659, allocations: 35.58 kB / 416 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4659, allocations: 0 / 416 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.4672, allocations: 392.6 kB / 416.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004917/0.4677, allocations: 89.11 kB / 416.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009182/0.4769, allocations: 3.559 MB / 420 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008402/0.4777, allocations: 83.52 kB / 420.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/0.4778, allocations: 17.55 kB / 420.1 MB, free: 10.18 MB / 334.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.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.0003616/0.4781, allocations: 172.6 kB / 420.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-05/0.4782, allocations: 48.56 kB / 420.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.4784, allocations: 54.59 kB / 420.4 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.4784, allocations: 4.062 kB / 420.4 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.4784, allocations: 3.984 kB / 420.4 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4784, allocations: 5.422 kB / 420.4 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008853/0.4793, allocations: 0.5564 MB / 420.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4793, allocations: 1.375 kB / 420.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004519/0.4797, allocations: 82.81 kB / 421 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.4809, allocations: 403.6 kB / 421.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.692e-05/0.481, allocations: 9.688 kB / 421.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008985/0.49, allocations: 3.564 MB / 425 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.968e-05/0.49, allocations: 4.031 kB / 425 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004771/0.4948, allocations: 1.244 MB / 426.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003716/0.4952, allocations: 99.56 kB / 426.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.259e-05/0.4953, allocations: 12 kB / 426.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005364/0.4958, allocations: 63.92 kB / 426.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.496, allocations: 55.84 kB / 426.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.496, allocations: 12 kB / 426.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003946/0.4964, allocations: 271.2 kB / 426.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4964, allocations: 4 kB / 426.7 MB, free: 4.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007637/0.4972, allocations: 171.8 kB / 426.9 MB, free: 4.148 MB / 334.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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.005158/0.5023, allocations: 1.803 MB / 428.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003031/0.5054, allocations: 0.8605 MB / 429.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5054, allocations: 0 / 429.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.507, allocations: 0.5184 MB / 430.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008125/0.5078, allocations: 89.23 kB / 430.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01524/0.5231, allocations: 5.462 MB / 435.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007166/0.5238, allocations: 0.8355 MB / 436.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002787/0.5241, allocations: 35.28 kB / 436.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.5244, allocations: 155.4 kB / 436.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of SimCode: time 2.014e-06/0.5244, allocations: 0 / 436.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06792/0.5923, allocations: 17.92 MB / 454.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/14.28, allocations: 7.797 kB / 454.6 MB, free: 8.191 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.290277695050463] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 14.417741569923237 14.442665894 14.010125994 Calling exit ...