Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.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.001284/0.001284, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001431/0.001431, allocations: 218.5 kB / 23.04 MB, free: 5.074 MB / 14.72 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 1.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension main/package.mo): time 0.009192/0.009192, allocations: 1.224 MB / 314.5 MB, free: 1.949 MB / 238.1 MB " [Timeout remaining time 180] Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension main/package.mo) 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(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: FluxTubesExtension requested package Modelica of version 4.0.0. Modelica 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.001973/0.001973, allocations: 60.19 kB / 436.8 MB, free: 16.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1092, allocations: 53.64 MB / 490.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.005111/0.1143, allocations: 2.863 MB / 493.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003252/0.1175, allocations: 1.732 MB / 495.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.1178, allocations: 4 kB / 495.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008427/0.1186, allocations: 202.9 kB / 495.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00031/0.1189, allocations: 99.17 kB / 495.4 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.1198, allocations: 307.3 kB / 495.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006393/0.1204, allocations: 394.5 kB / 496.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.1206, allocations: 77.98 kB / 496.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002915/0.1209, allocations: 155.4 kB / 496.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.1212, allocations: 167.2 kB / 496.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.694e-05/0.1212, allocations: 36 kB / 496.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004342/0.1217, allocations: 235.6 kB / 496.7 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001608/0.1218, allocations: 87.67 kB / 496.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.122, allocations: 171.1 kB / 497 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000759/0.1228, allocations: 466.1 kB / 497.4 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1228, allocations: 3.938 kB / 497.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1228, allocations: 0 / 497.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1228, allocations: 0 / 497.4 MB, free: 3.738 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001206/0.124, allocations: 0.5867 MB / 498 MB, free: 3.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.124, allocations: 8.031 kB / 498 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.59e-05/0.1241, allocations: 8.844 kB / 498 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.281e-05/0.1241, allocations: 62.72 kB / 498.1 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.1244, allocations: 56.64 kB / 498.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004605/0.1248, allocations: 225 kB / 498.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.1248, allocations: 21.03 kB / 498.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.1249, allocations: 28.33 kB / 498.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005757/0.1255, allocations: 274 kB / 498.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1255, allocations: 3.984 kB / 498.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.1255, allocations: 12 kB / 498.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.1255, allocations: 8 kB / 498.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005155/0.1261, allocations: 246.5 kB / 498.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.1281, allocations: 1.038 MB / 500 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004999/0.1286, allocations: 232.7 kB / 0.4885 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/0.1289, allocations: 116.8 kB / 0.4886 GB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.243e-05/0.1289, allocations: 24.03 kB / 0.4886 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.129, allocations: 30.56 kB / 0.4886 GB, free: 0.6172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.129, allocations: 7.938 kB / 0.4887 GB, free: 0.6094 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.00507/0.134, allocations: 1.465 MB / 0.4901 GB, free: 15.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.1341, allocations: 55.41 kB / 0.4901 GB, free: 15.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003936/0.1345, allocations: 284.2 kB / 0.4904 GB, free: 14.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.1345, allocations: 29.7 kB / 0.4904 GB, free: 14.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.1347, allocations: 204.5 kB / 0.4906 GB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.1349, allocations: 123 kB / 0.4908 GB, free: 14.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.135, allocations: 77.53 kB / 0.4908 GB, free: 14.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1352, allocations: 342.8 kB / 0.4912 GB, free: 13.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.1354, allocations: 119.9 kB / 0.4913 GB, free: 13.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000347/0.1358, allocations: 172.5 kB / 0.4914 GB, free: 13.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005438/0.1363, allocations: 294.1 kB / 0.4917 GB, free: 13.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1363, allocations: 0 / 0.4917 GB, free: 13.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001872/0.1382, allocations: 0.6292 MB / 0.4923 GB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.1382, allocations: 4 kB / 0.4923 GB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.1382, allocations: 0 / 0.4923 GB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002832/0.141, allocations: 0.5362 MB / 0.4929 GB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004351/0.1415, allocations: 59.91 kB / 0.4929 GB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.1429, allocations: 1.28 MB / 0.4942 GB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.1432, allocations: 15.94 kB / 0.4942 GB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/0.1432, allocations: 8 kB / 0.4942 GB, free: 10.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002774/0.1435, allocations: 161.8 kB / 0.4943 GB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.1436, allocations: 31.77 kB / 0.4944 GB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/0.1455, allocations: 0.5683 MB / 0.4949 GB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.1455, allocations: 0 / 0.4949 GB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1455, allocations: 4 kB / 0.4949 GB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.1455, allocations: 3.938 kB / 0.4949 GB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.1481, allocations: 1.035 MB / 0.4959 GB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.1481, allocations: 4.062 kB / 0.4959 GB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002421/0.1484, allocations: 48.06 kB / 0.496 GB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002829/0.1512, allocations: 0.5401 MB / 0.4965 GB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.586e-05/0.1512, allocations: 8 kB / 0.4965 GB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/0.1526, allocations: 1.273 MB / 0.4978 GB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1526, allocations: 0 / 0.4978 GB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002145/0.1548, allocations: 0.8108 MB / 0.4986 GB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.1549, allocations: 27.84 kB / 0.4986 GB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.517e-05/0.155, allocations: 11.94 kB / 0.4986 GB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1552, allocations: 11.98 kB / 0.4986 GB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.1553, allocations: 23.95 kB / 0.4986 GB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.653e-05/0.1553, allocations: 11.98 kB / 0.4986 GB, free: 6.016 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002677/0.1556, allocations: 203.1 kB / 0.4988 GB, free: 5.816 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1556, allocations: 4 kB / 0.4988 GB, free: 5.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004855/0.1561, allocations: 95.86 kB / 0.4989 GB, free: 5.719 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002817/0.1589, allocations: 1.381 MB / 0.5003 GB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009289/0.1598, allocations: 311.8 kB / 0.5006 GB, free: 3.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1598, allocations: 0 / 0.5006 GB, free: 3.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.1603, allocations: 183.8 kB / 0.5008 GB, free: 3.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004953/0.1608, allocations: 44.83 kB / 0.5008 GB, free: 3.773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2113/0.372, allocations: 3.749 MB / 0.5045 GB, free: 25.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.3723, allocations: 0.7888 MB / 0.5052 GB, free: 25.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.3724, allocations: 24.5 kB / 0.5053 GB, free: 25.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.3726, allocations: 112.2 kB / 0.5054 GB, free: 25.25 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3726, allocations: 4.406 kB / 0.5054 GB, free: 25.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03241/0.405, allocations: 7.51 MB / 0.5127 GB, free: 24.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.41, allocations: 13.03 kB / 0.5127 GB, free: 24.43 MB / 366.1 MB " [Timeout remaining time 646] (rm -f FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor.fmu > FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.09681751707103] Failed to read output from testmodel.py, exit status != 0: 13.583214005106129 13.596152192 13.470838574 Calling exit ...