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.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.001246/0.001246, allocations: 122.2 kB / 18.45 MB, free: 4.477 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.00123/0.00123, allocations: 190.9 kB / 21.39 MB, free: 1.543 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.355/1.355, allocations: 207.6 MB / 231.8 MB, free: 4 MB / 174.1 MB " [Timeout remaining time 179] 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 59.92 kB / 342.3 MB, free: 10.11 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.08756, allocations: 49.12 MB / 391.4 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005207/0.09277, allocations: 3.909 MB / 395.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.09509, allocations: 1.041 MB / 396.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002981/0.09538, allocations: 4 kB / 396.3 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.09564, allocations: 87.14 kB / 396.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.09598, allocations: 174.5 kB / 396.6 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005252/0.09651, allocations: 207.7 kB / 396.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008026/0.09731, allocations: 0.7587 MB / 397.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000247/0.09756, allocations: 124.9 kB / 397.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003541/0.09791, allocations: 303 kB / 398 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003802/0.09829, allocations: 334.7 kB / 398.3 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.09839, allocations: 76 kB / 398.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.873e-05/0.09849, allocations: 76 kB / 398.4 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.09863, allocations: 155.5 kB / 398.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002823/0.09891, allocations: 314.5 kB / 398.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008083/0.09972, allocations: 0.7979 MB / 399.7 MB, free: 472 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.09972, allocations: 0 / 399.7 MB, free: 472 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09972, allocations: 0 / 399.7 MB, free: 472 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.09974, allocations: 4 kB / 399.7 MB, free: 468 kB / 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.002511/0.1022, allocations: 0.9949 MB / 400.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.1023, allocations: 8.031 kB / 400.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.165e-05/0.1024, allocations: 74.66 kB / 400.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.1025, allocations: 60.56 kB / 400.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005999/0.1031, allocations: 402.3 kB / 401.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.1031, allocations: 29.38 kB / 401.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.04e-05/0.1032, allocations: 47.92 kB / 401.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.1045, allocations: 0.5513 MB / 401.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.1045, allocations: 7.938 kB / 401.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.38e-05/0.1045, allocations: 12 kB / 401.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1045, allocations: 12 kB / 401.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.1062, allocations: 0.5777 MB / 402.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003387/0.1096, allocations: 2.004 MB / 404.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00353/0.1131, allocations: 0.7525 MB / 405.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008867/0.114, allocations: 340.7 kB / 405.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.114, allocations: 8 kB / 405.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009738/0.115, allocations: 407.6 kB / 406 MB, free: 9.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.963e-06/0.115, allocations: 0 / 406 MB, free: 9.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.009304/0.1243, allocations: 1.787 MB / 407.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.1244, allocations: 81.11 kB / 407.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000445/0.1248, allocations: 385.7 kB / 408.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.1248, allocations: 29.7 kB / 408.2 MB, free: 7.617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.125, allocations: 228.8 kB / 408.5 MB, free: 7.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.1252, allocations: 142.8 kB / 408.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.1253, allocations: 70.06 kB / 408.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1255, allocations: 354.8 kB / 409 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007937/0.1263, allocations: 268.6 kB / 409.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008033/0.1271, allocations: 309.9 kB / 409.6 MB, free: 6.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.1286, allocations: 0.5485 MB / 410.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.1286, allocations: 0 / 410.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004611/0.1332, allocations: 1.041 MB / 411.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.336e-05/0.1332, allocations: 33.64 kB / 411.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1333, allocations: 4 kB / 411.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.1344, allocations: 404.3 kB / 411.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.1348, allocations: 83.92 kB / 411.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008226/0.1431, allocations: 3.677 MB / 415.4 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006345/0.1437, allocations: 87.7 kB / 415.4 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.1437, allocations: 15.98 kB / 415.5 MB, free: 180 kB / 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.0002462/0.144, allocations: 165.8 kB / 415.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-05/0.1441, allocations: 51.59 kB / 415.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.1442, allocations: 60.38 kB / 415.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1442, allocations: 4 kB / 415.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.1442, allocations: 0 / 415.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1442, allocations: 3.984 kB / 415.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000695/0.1449, allocations: 0.5833 MB / 416.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1449, allocations: 3.938 kB / 416.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004256/0.1453, allocations: 75.94 kB / 416.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.1464, allocations: 396.5 kB / 416.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.1465, allocations: 8 kB / 416.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008009/0.1545, allocations: 3.674 MB / 420.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.1545, allocations: 3.984 kB / 420.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004338/0.1588, allocations: 1.252 MB / 421.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/0.1591, allocations: 172.7 kB / 421.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.361e-05/0.1592, allocations: 12 kB / 421.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005166/0.1597, allocations: 63.92 kB / 422 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.1598, allocations: 47.94 kB / 422 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.709e-05/0.1599, allocations: 11.98 kB / 422 MB, free: 9.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000311/0.1602, allocations: 275.2 kB / 422.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1602, allocations: 0 / 422.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005862/0.1608, allocations: 171.8 kB / 422.5 MB, free: 8.926 MB / 350.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.004805/0.1656, allocations: 1.803 MB / 424.3 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002451/0.168, allocations: 0.8648 MB / 425.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.168, allocations: 0 / 425.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.1694, allocations: 0.5178 MB / 425.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.1699, allocations: 81.42 kB / 425.7 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.183, allocations: 5.463 MB / 431.2 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.1835, allocations: 0.8278 MB / 432 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000224/0.1837, allocations: 39.27 kB / 432.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.1839, allocations: 155.4 kB / 432.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1839, allocations: 0 / 432.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04954/0.2335, allocations: 17.57 MB / 449.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.06, allocations: 7.906 kB / 449.8 MB, free: 13.32 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.329075853805989] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.154292362742126 12.16736932 12.064931546 Calling exit ...