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.001336/0.001336, allocations: 119.3 kB / 17.17 MB, free: 5.977 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.001481/0.001481, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.499/1.499, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.008964/0.008964, allocations: 1.241 MB / 310.8 MB, free: 3.176 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.001927/0.001927, allocations: 65.39 kB / 431.6 MB, free: 39.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08724/0.08917, allocations: 53.58 MB / 485.2 MB, free: 17.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.003932/0.0931, allocations: 2.861 MB / 488 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002473/0.09557, allocations: 1.706 MB / 489.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003109/0.09589, allocations: 8.125 kB / 489.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006867/0.09657, allocations: 191.5 kB / 489.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003257/0.0969, allocations: 98.11 kB / 490 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007318/0.09763, allocations: 290.5 kB / 490.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005077/0.09814, allocations: 388.5 kB / 490.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.09831, allocations: 78.56 kB / 490.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.09858, allocations: 160.5 kB / 490.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.09884, allocations: 166.9 kB / 491.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.545e-05/0.0989, allocations: 30.06 kB / 491.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003314/0.09923, allocations: 210 kB / 491.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.271e-05/0.0993, allocations: 76.97 kB / 491.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.09944, allocations: 175.6 kB / 491.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005076/0.09995, allocations: 468.6 kB / 492 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.09995, allocations: 1.125 kB / 492 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09995, allocations: 0 / 492 MB, free: 12.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.09997, allocations: 0 / 492 MB, free: 12.63 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.001015/0.101, allocations: 0.6615 MB / 492.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.101, allocations: 9.844 kB / 492.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.531e-05/0.101, allocations: 8.125 kB / 492.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.1011, allocations: 63.14 kB / 492.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.1013, allocations: 53.42 kB / 492.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.1016, allocations: 284 kB / 493.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.1016, allocations: 24.39 kB / 493.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.1017, allocations: 38.14 kB / 493.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004663/0.1022, allocations: 266.6 kB / 493.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1022, allocations: 0 / 493.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.1022, allocations: 11.22 kB / 493.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.1022, allocations: 6.625 kB / 493.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005464/0.1028, allocations: 250 kB / 493.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1046, allocations: 1.072 MB / 494.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/0.1051, allocations: 246.7 kB / 495 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.1053, allocations: 118.5 kB / 495.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.167e-05/0.1054, allocations: 20.36 kB / 495.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.1054, allocations: 31.94 kB / 495.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.1054, allocations: 0 / 495.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.004216/0.1096, allocations: 1.624 MB / 496.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.1096, allocations: 54.16 kB / 496.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/0.1099, allocations: 279.3 kB / 497.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.1099, allocations: 31.08 kB / 497.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/0.11, allocations: 210.2 kB / 497.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.907e-05/0.11, allocations: 120.7 kB / 497.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.707e-05/0.1101, allocations: 66.41 kB / 497.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.451e-05/0.1102, allocations: 349.6 kB / 497.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002442/0.1104, allocations: 113.5 kB / 498 MB, free: 8.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002499/0.1107, allocations: 172.9 kB / 498.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004248/0.1111, allocations: 299.7 kB / 498.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1111, allocations: 0 / 498.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001452/0.1126, allocations: 0.6174 MB / 499 MB, free: 7.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1126, allocations: 8 kB / 499.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1126, allocations: 0 / 499.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002576/0.1152, allocations: 0.5323 MB / 499.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002989/0.1155, allocations: 63.89 kB / 499.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006766/0.1161, allocations: 1.28 MB / 0.4892 GB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002668/0.1164, allocations: 11.94 kB / 0.4892 GB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.1164, allocations: 16.06 kB / 0.4892 GB, free: 5.242 MB / 350.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.000156/0.1166, allocations: 153.9 kB / 0.4894 GB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.1167, allocations: 35.77 kB / 0.4894 GB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001416/0.1181, allocations: 0.5802 MB / 0.49 GB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1181, allocations: 7.938 kB / 0.49 GB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1181, allocations: 0 / 0.49 GB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.1181, allocations: 3.984 kB / 0.49 GB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.1199, allocations: 1.071 MB / 0.491 GB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1199, allocations: 0 / 0.491 GB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.1201, allocations: 39.97 kB / 0.4911 GB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002428/0.1225, allocations: 0.5324 MB / 0.4916 GB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.1226, allocations: 8 kB / 0.4916 GB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005681/0.1231, allocations: 1.276 MB / 0.4928 GB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1231, allocations: 4.031 kB / 0.4928 GB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.1247, allocations: 0.7991 MB / 0.4936 GB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.377e-05/0.1247, allocations: 104.9 kB / 0.4937 GB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.341e-05/0.1248, allocations: 16 kB / 0.4937 GB, free: 424 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.125, allocations: 15.98 kB / 0.4938 GB, free: 408 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/0.125, allocations: 15.97 kB / 0.4938 GB, free: 392 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.125, allocations: 12 kB / 0.4938 GB, free: 380 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000149/0.1252, allocations: 202 kB / 0.494 GB, free: 180 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1252, allocations: 0 / 0.494 GB, free: 180 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004064/0.1256, allocations: 83.94 kB / 0.4941 GB, free: 96 kB / 350.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.00233/0.1279, allocations: 1.388 MB / 0.4954 GB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008064/0.1287, allocations: 316 kB / 0.4957 GB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1287, allocations: 8.125 kB / 0.4957 GB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004366/0.1292, allocations: 179.8 kB / 0.4959 GB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004078/0.1296, allocations: 43.81 kB / 0.4959 GB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006779/0.1364, allocations: 3.748 MB / 0.4996 GB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.1368, allocations: 0.7915 MB / 0.5004 GB, free: 9.438 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.1369, allocations: 30.25 kB / 0.5004 GB, free: 9.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.1371, allocations: 111.4 kB / 0.5005 GB, free: 9.297 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1371, allocations: 0 / 0.5005 GB, free: 9.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.1677, allocations: 7.226 MB / 0.5076 GB, free: 2.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.62, allocations: 13.41 kB / 0.5076 GB, free: 2.215 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.4170828370261] Failed to read output from testmodel.py, exit status != 0: 12.984215350996237 12.789539533 12.686500421 Calling exit ...