Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.001684/0.001684, allocations: 110 kB / 18.49 MB, free: 4.543 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.001997/0.001997, allocations: 198.6 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 249.8 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 51.92 kB / 366.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09954, allocations: 52.15 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004382/0.1039, allocations: 2.834 MB / 421.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.106, allocations: 1.23 MB / 422.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.1061, allocations: 4 kB / 422.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.1064, allocations: 71.41 kB / 422.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005475/0.1069, allocations: 226.7 kB / 422.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.1072, allocations: 119.8 kB / 423 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.1077, allocations: 459 kB / 423.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.1078, allocations: 64.66 kB / 423.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002955/0.1081, allocations: 191.4 kB / 423.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002977/0.1084, allocations: 223.1 kB / 423.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.1085, allocations: 47.94 kB / 423.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002824/0.1088, allocations: 155.9 kB / 424.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.449e-05/0.1089, allocations: 91.66 kB / 424.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.1091, allocations: 187.2 kB / 424.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006233/0.1097, allocations: 0.502 MB / 424.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1097, allocations: 0 / 424.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1097, allocations: 4 kB / 424.9 MB, free: 6.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1097, allocations: 0 / 424.9 MB, free: 6.168 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001683/0.1114, allocations: 0.7168 MB / 425.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.1114, allocations: 8.031 kB / 425.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.803e-05/0.1114, allocations: 12.75 kB / 425.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.724e-05/0.1115, allocations: 58.73 kB / 425.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.545e-05/0.1116, allocations: 48.69 kB / 425.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005243/0.1121, allocations: 321.5 kB / 426 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.533e-05/0.1122, allocations: 58.81 kB / 426.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.1124, allocations: 40.09 kB / 426.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006076/0.113, allocations: 320.5 kB / 426.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.113, allocations: 0 / 426.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.383e-05/0.113, allocations: 12 kB / 426.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.113, allocations: 4 kB / 426.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006961/0.1137, allocations: 305.9 kB / 426.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1155, allocations: 1.168 MB / 427.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/0.1162, allocations: 287.1 kB / 428.2 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003458/0.1165, allocations: 160 kB / 428.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.1166, allocations: 8 kB / 428.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1166, allocations: 38.5 kB / 428.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.442e-06/0.1166, allocations: 0 / 428.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.009578/0.1262, allocations: 2.421 MB / 430.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.1262, allocations: 85.09 kB / 430.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.1266, allocations: 285 kB / 431.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.331e-05/0.1266, allocations: 33.7 kB / 431.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.1268, allocations: 168.7 kB / 431.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.1269, allocations: 158.6 kB / 431.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.1271, allocations: 78.11 kB / 431.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.1272, allocations: 342.8 kB / 431.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004189/0.1277, allocations: 160.8 kB / 432.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004648/0.1281, allocations: 230.7 kB / 432.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000865/0.129, allocations: 407.5 kB / 432.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.129, allocations: 0 / 432.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001068/0.1301, allocations: 0.4886 MB / 433.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1301, allocations: 8 kB / 433.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1301, allocations: 0 / 433.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.1301, allocations: 4 kB / 433.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005999/0.1307, allocations: 120 kB / 433.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.1307, allocations: 4 kB / 433.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.1311, allocations: 35.97 kB / 433.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.1311, allocations: 16 kB / 433.4 MB, free: 13.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000186/0.1313, allocations: 150.4 kB / 433.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.847e-05/0.1314, allocations: 39.75 kB / 433.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.1333, allocations: 0.6485 MB / 434.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.1333, allocations: 8 kB / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1333, allocations: 0 / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1334, allocations: 0 / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003172/0.1365, allocations: 1.279 MB / 435.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1365, allocations: 0 / 435.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000451/0.137, allocations: 87.88 kB / 435.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/0.1385, allocations: 272.5 kB / 435.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/0.1385, allocations: 11.98 kB / 435.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.1426, allocations: 2.443 MB / 438.3 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.1426, allocations: 4.219 kB / 438.3 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.145, allocations: 1.008 MB / 439.3 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/0.1452, allocations: 148.8 kB / 439.5 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.1452, allocations: 12 kB / 439.5 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.1456, allocations: 23.97 kB / 439.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.1458, allocations: 40.39 kB / 439.5 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.1458, allocations: 23.92 kB / 439.6 MB, free: 6.801 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.146, allocations: 208.5 kB / 439.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.146, allocations: 0 / 439.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.1466, allocations: 119.9 kB / 439.9 MB, free: 6.477 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002792/0.1494, allocations: 1.587 MB / 441.5 MB, free: 4.859 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009886/0.1504, allocations: 417.9 kB / 441.9 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1504, allocations: 0 / 441.9 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007002/0.1511, allocations: 369.3 kB / 442.2 MB, free: 4.082 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.1516, allocations: 32.42 kB / 442.3 MB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005861/0.1574, allocations: 3.854 MB / 446.1 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1882/0.3456, allocations: 0.7853 MB / 446.9 MB, free: 30.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003613/0.346, allocations: 40.56 kB / 447 MB, free: 30.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002494/0.3463, allocations: 120.9 kB / 447.1 MB, free: 30.19 MB / 366.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3463, allocations: 0 / 447.1 MB, free: 30.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03622/0.3825, allocations: 9.757 MB / 456.8 MB, free: 29.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.24, allocations: 10.14 kB / 456.8 MB, free: 29.18 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.725251508003566] Failed to read output from testmodel.py, exit status != 0: ['time', 'core.B', 'core.Hstat', 'core.MagRel', 'winding.i'] 12.395080944988877 12.416101633 12.302360564 Calling exit ...