Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001309/0.001309, allocations: 115.7 kB / 18.49 MB, free: 4.59 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.001338/0.001338, allocations: 194.6 kB / 21.43 MB, free: 1.66 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.384/1.384, allocations: 225.6 MB / 249.8 MB, free: 3.652 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.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 43.94 kB / 366.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1016, allocations: 52.15 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004362/0.106, allocations: 2.812 MB / 421.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.1073, allocations: 0.7516 MB / 422.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001422/0.1074, allocations: 11.94 kB / 422.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.1076, allocations: 59.44 kB / 422.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.1079, allocations: 95.25 kB / 422.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.1082, allocations: 103.8 kB / 422.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.1086, allocations: 386.5 kB / 422.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002068/0.1088, allocations: 94.94 kB / 422.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002549/0.109, allocations: 163.4 kB / 422.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.1093, allocations: 175.2 kB / 423.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.067e-05/0.1093, allocations: 32 kB / 423.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.135e-05/0.1094, allocations: 32 kB / 423.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.87e-05/0.1094, allocations: 71.75 kB / 423.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.1096, allocations: 175.1 kB / 423.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.11, allocations: 398.3 kB / 423.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.11, allocations: 0 / 423.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1101, allocations: 0 / 423.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.1101, allocations: 3.938 kB / 423.8 MB, free: 7.289 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001201/0.1113, allocations: 0.6491 MB / 424.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1113, allocations: 8.031 kB / 424.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.947e-05/0.1113, allocations: 12.84 kB / 424.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.282e-05/0.1114, allocations: 70.72 kB / 424.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.1115, allocations: 36.7 kB / 424.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.1119, allocations: 276.1 kB / 424.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.1119, allocations: 25.03 kB / 424.9 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.1119, allocations: 32.38 kB / 424.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.1126, allocations: 286 kB / 425.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.1126, allocations: 7.984 kB / 425.2 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.1126, allocations: 12 kB / 425.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1126, allocations: 8 kB / 425.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000633/0.1132, allocations: 250.5 kB / 425.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.1151, allocations: 1.124 MB / 426.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.1155, allocations: 142.5 kB / 426.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.1157, allocations: 68.81 kB / 426.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.1157, allocations: 0 / 426.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.1157, allocations: 34.56 kB / 426.8 MB, free: 4.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.112e-06/0.1157, allocations: 4 kB / 426.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002139/0.1179, allocations: 0.5939 MB / 427.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.1179, allocations: 59.34 kB / 427.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003106/0.1182, allocations: 266.6 kB / 427.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.1183, allocations: 33.69 kB / 427.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.1184, allocations: 224.1 kB / 428 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.558e-05/0.1185, allocations: 87.25 kB / 428.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.1186, allocations: 65.66 kB / 428.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1188, allocations: 334.8 kB / 428.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.1191, allocations: 95.94 kB / 428.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003791/0.1194, allocations: 199.9 kB / 428.8 MB, free: 2.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006522/0.1201, allocations: 301.8 kB / 429.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1201, allocations: 0 / 429.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008798/0.121, allocations: 389.5 kB / 429.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.121, allocations: 12 kB / 429.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.121, allocations: 0 / 429.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.1213, allocations: 61.61 kB / 429.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003282/0.1216, allocations: 75.89 kB / 429.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002399/0.124, allocations: 2.833 MB / 432.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/0.1243, allocations: 24.03 kB / 432.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.1243, allocations: 23.94 kB / 432.5 MB, free: 13.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001827/0.1245, allocations: 145.8 kB / 432.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.394e-05/0.1245, allocations: 27.81 kB / 432.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.153e-05/0.1246, allocations: 30.17 kB / 432.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1246, allocations: 4 kB / 432.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1246, allocations: 0 / 432.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1246, allocations: 4.125 kB / 432.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004172/0.125, allocations: 333.4 kB / 433 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1251, allocations: 4 kB / 433 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.1253, allocations: 43.91 kB / 433 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001546/0.1254, allocations: 53.67 kB / 433.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.1254, allocations: 12 kB / 433.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.1278, allocations: 2.821 MB / 435.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1278, allocations: 128 / 435.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007745/0.1286, allocations: 376.7 kB / 436.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.022e-05/0.1287, allocations: 100.9 kB / 436.4 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.1287, allocations: 11.94 kB / 436.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.1289, allocations: 23.91 kB / 436.4 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.683e-05/0.129, allocations: 15.98 kB / 436.4 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.129, allocations: 4 kB / 436.4 MB, free: 9.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001965/0.1292, allocations: 186 kB / 436.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1292, allocations: 0 / 436.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003951/0.1296, allocations: 72 kB / 436.7 MB, free: 9.352 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001093/0.1307, allocations: 0.9113 MB / 437.6 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009658/0.1317, allocations: 475.1 kB / 438.1 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1317, allocations: 0 / 438.1 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.1322, allocations: 337.2 kB / 438.4 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.1325, allocations: 36.55 kB / 438.4 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004605/0.1372, allocations: 2.949 MB / 441.4 MB, free: 4.398 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.1376, allocations: 0.7714 MB / 442.2 MB, free: 3.602 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.1378, allocations: 34.31 kB / 442.2 MB, free: 3.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.1379, allocations: 95.41 kB / 442.3 MB, free: 3.477 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1379, allocations: 0 / 442.3 MB, free: 3.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2256/0.3635, allocations: 5.644 MB / 447.9 MB, free: 30.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.54, allocations: 13.52 kB / 447.9 MB, free: 30.4 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.838404493988492] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 10.678309610986616 10.689524206 10.576934115 Calling exit ...