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.001362/0.001362, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001559/0.001559, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.957 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.009841/0.009841, allocations: 1.232 MB / 313.7 MB, free: 1.941 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="me",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.001996/0.001996, allocations: 63.91 kB / 436 MB, free: 16.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09908/0.1011, allocations: 53.64 MB / 489.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.SaturatedInductor): time 0.004757/0.1058, allocations: 2.85 MB / 492.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003045/0.1089, allocations: 1.732 MB / 494.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002475/0.1091, allocations: 4 kB / 494.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000765/0.1099, allocations: 206.9 kB / 494.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003765/0.1103, allocations: 91.2 kB / 494.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008925/0.1112, allocations: 315.6 kB / 494.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006266/0.1118, allocations: 394.5 kB / 495.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.112, allocations: 77.97 kB / 495.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002849/0.1123, allocations: 159.4 kB / 495.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.1126, allocations: 167.2 kB / 495.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.197e-05/0.1126, allocations: 28 kB / 495.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004152/0.113, allocations: 247.6 kB / 495.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.1131, allocations: 75.69 kB / 496 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1133, allocations: 171.1 kB / 496.2 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006589/0.114, allocations: 474.1 kB / 496.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.114, allocations: 0 / 496.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.114, allocations: 0 / 496.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.114, allocations: 0 / 496.6 MB, free: 3.73 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.001184/0.1152, allocations: 0.5867 MB / 497.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.1152, allocations: 12.03 kB / 497.2 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.149e-05/0.1153, allocations: 66.72 kB / 497.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.1155, allocations: 48.66 kB / 497.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.116, allocations: 224.9 kB / 497.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.116, allocations: 25.03 kB / 497.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.1161, allocations: 40.31 kB / 497.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005415/0.1166, allocations: 270.2 kB / 497.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1166, allocations: 0 / 497.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.1166, allocations: 12 kB / 497.9 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.1167, allocations: 7.938 kB / 497.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004995/0.1172, allocations: 246.5 kB / 498.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.1189, allocations: 1.03 MB / 499.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000472/0.1194, allocations: 238.5 kB / 499.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.1197, allocations: 124.8 kB / 499.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.999e-05/0.1197, allocations: 16.05 kB / 499.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.1198, allocations: 38.55 kB / 499.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.1198, allocations: 0 / 499.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.004376/0.1241, allocations: 1.471 MB / 0.4893 GB, free: 15.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1242, allocations: 55.41 kB / 0.4894 GB, free: 15.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.1245, allocations: 284.2 kB / 0.4896 GB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.1245, allocations: 33.7 kB / 0.4897 GB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.1247, allocations: 196.5 kB / 0.4899 GB, free: 14.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.1248, allocations: 126.9 kB / 0.49 GB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.1249, allocations: 73.61 kB / 0.4901 GB, free: 14.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.1251, allocations: 346.7 kB / 0.4904 GB, free: 13.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.1253, allocations: 119.9 kB / 0.4905 GB, free: 13.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.1256, allocations: 168.5 kB / 0.4907 GB, free: 13.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005206/0.1261, allocations: 302.1 kB / 0.4909 GB, free: 13.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1261, allocations: 0 / 0.4909 GB, free: 13.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001683/0.1278, allocations: 0.6136 MB / 0.4915 GB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.1278, allocations: 14.19 kB / 0.4916 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1278, allocations: 0 / 0.4916 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002646/0.1305, allocations: 0.5246 MB / 0.4921 GB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.1308, allocations: 67.84 kB / 0.4921 GB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.1319, allocations: 1.273 MB / 0.4934 GB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.1321, allocations: 23.95 kB / 0.4934 GB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.1322, allocations: 16.06 kB / 0.4934 GB, free: 10.75 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.0002219/0.1324, allocations: 155.3 kB / 0.4936 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.517e-05/0.1325, allocations: 35.77 kB / 0.4936 GB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.1341, allocations: 0.5723 MB / 0.4942 GB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.1341, allocations: 4 kB / 0.4942 GB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1341, allocations: 7.922 kB / 0.4942 GB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1341, allocations: 0 / 0.4942 GB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.1363, allocations: 1.031 MB / 0.4952 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1363, allocations: 0 / 0.4952 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.1365, allocations: 39.97 kB / 0.4952 GB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00252/0.139, allocations: 0.5324 MB / 0.4957 GB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.1391, allocations: 15.92 kB / 0.4957 GB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.1401, allocations: 1.276 MB / 0.497 GB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.1401, allocations: 4.031 kB / 0.497 GB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001796/0.1419, allocations: 0.8108 MB / 0.4978 GB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.569e-05/0.1419, allocations: 35.86 kB / 0.4978 GB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.142, allocations: 7.938 kB / 0.4978 GB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.1422, allocations: 19.98 kB / 0.4979 GB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.1422, allocations: 19.97 kB / 0.4979 GB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.1422, allocations: 11.98 kB / 0.4979 GB, free: 6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.1425, allocations: 199.1 kB / 0.4981 GB, free: 5.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1425, allocations: 0 / 0.4981 GB, free: 5.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004059/0.1429, allocations: 95.88 kB / 0.4982 GB, free: 5.715 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.002229/0.1451, allocations: 1.376 MB / 0.4995 GB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007592/0.1459, allocations: 319.8 kB / 0.4998 GB, free: 3.988 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1459, allocations: 0 / 0.4998 GB, free: 3.988 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.1463, allocations: 175.9 kB / 0.5 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.0003985/0.1467, allocations: 48.47 kB / 0.5 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1933/0.34, allocations: 3.755 MB / 0.5037 GB, free: 25.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.3404, allocations: 0.7891 MB / 0.5045 GB, free: 24.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001762/0.3405, allocations: 23.05 kB / 0.5045 GB, free: 24.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.3407, allocations: 110.2 kB / 0.5046 GB, free: 24.69 MB / 366.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3407, allocations: 0.6875 kB / 0.5046 GB, free: 24.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0402/0.3809, allocations: 7.477 MB / 0.5119 GB, free: 23.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.94, allocations: 2.219 kB / 0.5119 GB, free: 23.91 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.464172211010009] Failed to read output from testmodel.py, exit status != 0: 13.056395641993731 13.075627798 12.958307016 Calling exit ...