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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 85.95 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 183.2 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 223.2 MB / 241.2 MB, free: 5.305 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.0002811, allocations: 5.5 kB / 300.9 MB, free: 5.574 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1118, allocations: 50.43 MB / 351.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004169/0.116, allocations: 2.397 MB / 353.7 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.1178, allocations: 0.7014 MB / 354.4 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000224/0.1181, allocations: 4 kB / 354.4 MB, free: 8.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002386/0.1183, allocations: 51.61 kB / 354.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003523/0.1187, allocations: 83.44 kB / 354.6 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.119, allocations: 71.91 kB / 354.6 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005195/0.1195, allocations: 370.4 kB / 355 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.1198, allocations: 94.08 kB / 355.1 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002862/0.1201, allocations: 131.4 kB / 355.2 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.1204, allocations: 147.3 kB / 355.4 MB, free: 7.355 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.603e-05/0.1204, allocations: 20 kB / 355.4 MB, free: 7.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.587e-05/0.1205, allocations: 16 kB / 355.4 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.1206, allocations: 63.75 kB / 355.5 MB, free: 7.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.995e-05/0.1207, allocations: 81.52 kB / 355.6 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.1211, allocations: 303.1 kB / 355.8 MB, free: 6.875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1211, allocations: 0 / 355.8 MB, free: 6.875 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1211, allocations: 0 / 355.8 MB, free: 6.875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1211, allocations: 0 / 355.8 MB, free: 6.875 MB / 286.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.001382/0.1225, allocations: 0.604 MB / 356.5 MB, free: 6.223 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.1226, allocations: 8.031 kB / 356.5 MB, free: 6.215 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.1227, allocations: 74.48 kB / 356.5 MB, free: 6.133 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.427e-05/0.1228, allocations: 35.53 kB / 356.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.1233, allocations: 275.4 kB / 356.8 MB, free: 5.785 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.1233, allocations: 24.66 kB / 356.9 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.888e-05/0.1234, allocations: 28 kB / 356.9 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008372/0.1243, allocations: 302 kB / 357.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1243, allocations: 0 / 357.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.1243, allocations: 16 kB / 357.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.1244, allocations: 15.95 kB / 357.2 MB, free: 5.406 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008259/0.1252, allocations: 266.4 kB / 357.5 MB, free: 5.145 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.1275, allocations: 1.128 MB / 358.6 MB, free: 3.918 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005306/0.128, allocations: 162.5 kB / 358.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.1283, allocations: 68.83 kB / 358.8 MB, free: 3.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.1283, allocations: 7.969 kB / 358.8 MB, free: 3.672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001099/0.1284, allocations: 42.56 kB / 358.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 2.355e-06/0.1285, allocations: 0 / 358.9 MB, free: 3.621 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.002155/0.1306, allocations: 0.6724 MB / 359.5 MB, free: 2.941 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.1307, allocations: 51.59 kB / 359.6 MB, free: 2.879 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003084/0.131, allocations: 278.6 kB / 359.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.131, allocations: 29.7 kB / 359.9 MB, free: 2.566 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.1312, allocations: 227.5 kB / 360.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.351e-05/0.1313, allocations: 78.91 kB / 360.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.902e-05/0.1313, allocations: 8 kB / 360.2 MB, free: 2.254 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1315, allocations: 342.8 kB / 360.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.1317, allocations: 103.9 kB / 360.6 MB, free: 1.809 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004199/0.1322, allocations: 208.1 kB / 360.8 MB, free: 1.559 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.1327, allocations: 125.1 kB / 361 MB, free: 1.438 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1327, allocations: 4 kB / 361 MB, free: 1.434 MB / 286.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000896/0.1336, allocations: 417.5 kB / 361.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.1336, allocations: 4 kB / 361.4 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1336, allocations: 4 kB / 361.4 MB, free: 1.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002588/0.1339, allocations: 65.62 kB / 361.5 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.1342, allocations: 79.89 kB / 361.5 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002392/0.1366, allocations: 2.64 MB / 364.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.137, allocations: 31.97 kB / 364.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.137, allocations: 12 kB / 364.2 MB, free: 13.91 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001929/0.1372, allocations: 150.5 kB / 364.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.1372, allocations: 23.72 kB / 364.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.725e-05/0.1373, allocations: 42.06 kB / 364.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1373, allocations: 0 / 364.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1374, allocations: 4 kB / 364.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1374, allocations: 0 / 364.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.1378, allocations: 333.6 kB / 364.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1378, allocations: 0 / 364.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.138, allocations: 51.91 kB / 364.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/0.1381, allocations: 53.67 kB / 364.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.1382, allocations: 8 kB / 364.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.1402, allocations: 2.632 MB / 367.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1402, allocations: 0 / 367.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007292/0.1409, allocations: 403 kB / 367.9 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.926e-05/0.141, allocations: 96.83 kB / 368 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.94e-05/0.1411, allocations: 4 kB / 368 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.1413, allocations: 23.97 kB / 368 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.675e-05/0.1413, allocations: 11.98 kB / 368 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.1414, allocations: 15.98 kB / 368 MB, free: 9.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.1416, allocations: 190 kB / 368.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1416, allocations: 0 / 368.2 MB, free: 9.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004073/0.142, allocations: 76 kB / 368.3 MB, free: 9.453 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001058/0.1431, allocations: 0.9381 MB / 369.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009789/0.1441, allocations: 497.7 kB / 369.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1441, allocations: 4.188 kB / 369.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005138/0.1446, allocations: 359.8 kB / 370.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.145, allocations: 32.52 kB / 370.1 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002992/0.148, allocations: 1.762 MB / 371.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.1484, allocations: 0.7791 MB / 372.7 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.1486, allocations: 30.41 kB / 372.7 MB, free: 4.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.1487, allocations: 99.41 kB / 372.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1487, allocations: 0 / 372.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.1668, allocations: 5.106 MB / 377.9 MB, free: 15.92 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002891/0.1672, allocations: 245.5 kB / 378.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.861/2.028, allocations: 4 kB / 378.1 MB, free: 15.58 MB / 318.1 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat