Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.001211/0.001211, allocations: 108.6 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.001223/0.001223, allocations: 197 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.407/1.407, allocations: 225.6 MB / 249.8 MB, free: 3.609 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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 51.92 kB / 366.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 52.14 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004254/0.1059, allocations: 2.853 MB / 421.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.1072, allocations: 0.7515 MB / 422.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.1073, allocations: 4 kB / 422.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.1075, allocations: 63.42 kB / 422.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000268/0.1078, allocations: 103.2 kB / 422.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.1081, allocations: 111.8 kB / 422.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.1085, allocations: 394.5 kB / 422.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.1087, allocations: 90.94 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.109, allocations: 167.4 kB / 423 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.1092, allocations: 171.2 kB / 423.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.402e-05/0.1092, allocations: 36 kB / 423.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.145e-05/0.1093, allocations: 36 kB / 423.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.886e-05/0.1093, allocations: 87.61 kB / 423.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.1095, allocations: 171.1 kB / 423.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000438/0.1099, allocations: 402.3 kB / 423.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1099, allocations: 4 kB / 423.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.11, allocations: 0 / 423.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.11, allocations: 3.938 kB / 423.9 MB, free: 7.172 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.001268/0.1112, allocations: 0.6568 MB / 424.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1113, allocations: 8.031 kB / 424.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.521e-05/0.1113, allocations: 16.78 kB / 424.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.096e-05/0.1114, allocations: 66.72 kB / 424.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.408e-05/0.1114, allocations: 40.7 kB / 424.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.1118, allocations: 284.7 kB / 425 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.1118, allocations: 25.03 kB / 425 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.1119, allocations: 28.38 kB / 425 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000598/0.1125, allocations: 290 kB / 425.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1125, allocations: 0 / 425.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.1125, allocations: 19.98 kB / 425.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.1126, allocations: 8 kB / 425.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006279/0.1132, allocations: 254.5 kB / 425.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001726/0.1149, allocations: 1.116 MB / 426.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.1153, allocations: 150.4 kB / 426.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.1155, allocations: 66.86 kB / 426.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1155, allocations: 0 / 426.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.1155, allocations: 42.56 kB / 426.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.022e-06/0.1155, allocations: 0 / 426.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002071/0.1176, allocations: 0.5938 MB / 427.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.1176, allocations: 63.34 kB / 427.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.1179, allocations: 274.7 kB / 427.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.118, allocations: 25.7 kB / 427.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.1181, allocations: 236 kB / 428.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.1182, allocations: 79.31 kB / 428.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.1183, allocations: 65.66 kB / 428.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1184, allocations: 338.8 kB / 428.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.1188, allocations: 99.94 kB / 428.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003701/0.1191, allocations: 199.9 kB / 428.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006484/0.1198, allocations: 297.8 kB / 429.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1198, allocations: 8 kB / 429.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008827/0.1207, allocations: 397.2 kB / 429.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.1207, allocations: 8 kB / 429.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1207, allocations: 4 kB / 429.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002649/0.121, allocations: 65.89 kB / 429.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/0.1213, allocations: 71.83 kB / 429.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/0.1235, allocations: 2.841 MB / 432.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.1238, allocations: 19.98 kB / 432.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.1238, allocations: 19.94 kB / 432.6 MB, free: 13.8 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.0001605/0.124, allocations: 145.8 kB / 432.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/0.124, allocations: 23.86 kB / 432.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.556e-05/0.1241, allocations: 38.11 kB / 432.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1241, allocations: 3.938 kB / 432.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.1241, allocations: 4 kB / 432.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.1241, allocations: 3.984 kB / 432.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.1245, allocations: 329.4 kB / 433.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1245, allocations: 0 / 433.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.1247, allocations: 47.95 kB / 433.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001555/0.1249, allocations: 53.62 kB / 433.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.1249, allocations: 11.98 kB / 433.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/0.127, allocations: 2.825 MB / 436.1 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.127, allocations: 0 / 436.1 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007395/0.1277, allocations: 380.7 kB / 436.4 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.914e-05/0.1278, allocations: 109.1 kB / 436.5 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.1278, allocations: 0 / 436.5 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.128, allocations: 23.97 kB / 436.6 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.093e-05/0.1281, allocations: 19.97 kB / 436.6 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.1281, allocations: 4 kB / 436.6 MB, free: 9.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002036/0.1283, allocations: 198 kB / 436.8 MB, free: 9.227 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1283, allocations: 0 / 436.8 MB, free: 9.227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.1287, allocations: 72 kB / 436.9 MB, free: 9.156 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.001085/0.1298, allocations: 0.9075 MB / 437.8 MB, free: 8.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000979/0.1307, allocations: 479.1 kB / 438.2 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1307, allocations: 0 / 438.2 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005174/0.1313, allocations: 341.4 kB / 438.6 MB, free: 7.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.1316, allocations: 32.55 kB / 438.6 MB, free: 7.336 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004431/0.136, allocations: 3.024 MB / 441.6 MB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004576/0.1365, allocations: 0.7714 MB / 442.4 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.1366, allocations: 26.28 kB / 442.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.1368, allocations: 103.4 kB / 442.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1368, allocations: 0 / 442.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2062/0.3429, allocations: 5.818 MB / 448.3 MB, free: 30.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.46, allocations: 4.703 kB / 448.3 MB, free: 30.86 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.792975413030945] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 10.613116841006558 10.625659827 10.513412039 Calling exit ...