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.001112/0.001113, allocations: 94.84 kB / 16.3 MB, free: 5.992 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.001376/0.001376, allocations: 183.5 kB / 17.2 MB, free: 5.914 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.397/1.397, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002593, allocations: 6.406 kB / 300.8 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1018, allocations: 50.43 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003203/0.105, allocations: 2.288 MB / 353.5 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1062, allocations: 0.7133 MB / 354.2 MB, free: 8.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1063, allocations: 4 kB / 354.2 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.1065, allocations: 59.61 kB / 354.3 MB, free: 8.578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.1067, allocations: 87.73 kB / 354.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.1069, allocations: 75.91 kB / 354.5 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.1072, allocations: 259.3 kB / 354.7 MB, free: 8.164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/0.1074, allocations: 98.06 kB / 354.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.1077, allocations: 139.4 kB / 354.9 MB, free: 7.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.1079, allocations: 151.3 kB / 355.1 MB, free: 7.777 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.108, allocations: 20 kB / 355.1 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.655e-05/0.108, allocations: 20 kB / 355.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.1081, allocations: 51.81 kB / 355.2 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.084e-05/0.1082, allocations: 89.52 kB / 355.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.1085, allocations: 287.2 kB / 355.5 MB, free: 7.312 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1085, allocations: 4 kB / 355.6 MB, free: 7.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1085, allocations: 0 / 355.6 MB, free: 7.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1085, allocations: 0 / 355.6 MB, free: 7.309 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.001103/0.1096, allocations: 0.6079 MB / 356.2 MB, free: 6.652 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.1097, allocations: 8.031 kB / 356.2 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.18e-05/0.1098, allocations: 78.42 kB / 356.2 MB, free: 6.559 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.478e-05/0.1098, allocations: 39.53 kB / 356.3 MB, free: 6.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.1102, allocations: 271.4 kB / 356.5 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.1102, allocations: 20.66 kB / 356.6 MB, free: 6.191 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.1103, allocations: 35.98 kB / 356.6 MB, free: 6.156 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005742/0.1109, allocations: 294 kB / 356.9 MB, free: 5.867 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1109, allocations: 4 kB / 356.9 MB, free: 5.863 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/0.1109, allocations: 12 kB / 356.9 MB, free: 5.852 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.1109, allocations: 11.95 kB / 356.9 MB, free: 5.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006097/0.1116, allocations: 270.5 kB / 357.2 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.1132, allocations: 1.12 MB / 358.3 MB, free: 4.355 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.1136, allocations: 158.5 kB / 358.5 MB, free: 4.191 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.1137, allocations: 0 / 358.5 MB, free: 4.191 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.1137, allocations: 30.56 kB / 358.5 MB, free: 4.152 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.192e-06/0.1137, allocations: 8 kB / 358.5 MB, free: 4.145 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.002055/0.1158, allocations: 0.6746 MB / 359.2 MB, free: 3.461 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.1158, allocations: 51.59 kB / 359.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.1161, allocations: 282.5 kB / 359.5 MB, free: 3.117 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.1161, allocations: 33.64 kB / 359.5 MB, free: 3.078 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1162, allocations: 227.5 kB / 359.7 MB, free: 2.852 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.094e-05/0.1163, allocations: 70.91 kB / 359.8 MB, free: 2.781 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.459e-05/0.1163, allocations: 12 kB / 359.8 MB, free: 2.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1164, allocations: 334.8 kB / 360.2 MB, free: 2.434 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/0.1167, allocations: 107.9 kB / 360.3 MB, free: 2.328 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.1171, allocations: 204.1 kB / 360.5 MB, free: 2.082 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.1174, allocations: 141.1 kB / 360.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1174, allocations: 0 / 360.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008706/0.1183, allocations: 413.6 kB / 361 MB, free: 1.531 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.1183, allocations: 8 kB / 361 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.1183, allocations: 4 kB / 361 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003085/0.1186, allocations: 65.66 kB / 361.1 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.119, allocations: 75.84 kB / 361.2 MB, free: 1.375 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.1212, allocations: 2.656 MB / 363.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.1215, allocations: 31.88 kB / 363.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.1216, allocations: 16 kB / 363.9 MB, free: 14.41 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.0002039/0.1218, allocations: 154.4 kB / 364 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.634e-05/0.1218, allocations: 27.72 kB / 364 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.231e-05/0.1219, allocations: 34.12 kB / 364.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1219, allocations: 4 kB / 364.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.485e-06/0.1219, allocations: 0 / 364.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1219, allocations: 0 / 364.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004144/0.1224, allocations: 337.6 kB / 364.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.1224, allocations: 0 / 364.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.1226, allocations: 43.97 kB / 364.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001491/0.1227, allocations: 53.67 kB / 364.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.1228, allocations: 4 kB / 364.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.1245, allocations: 2.66 MB / 367.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1245, allocations: 0 / 367.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006922/0.1252, allocations: 394.9 kB / 367.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.681e-05/0.1253, allocations: 104.8 kB / 367.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.1253, allocations: 4 kB / 367.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1256, allocations: 19.98 kB / 367.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.1256, allocations: 27.84 kB / 367.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.1257, allocations: 4 kB / 367.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001809/0.1258, allocations: 194 kB / 367.9 MB, free: 10 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1258, allocations: 4 kB / 367.9 MB, free: 10 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.1263, allocations: 72 kB / 368 MB, free: 9.93 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.0009433/0.1272, allocations: 0.9344 MB / 368.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009011/0.1281, allocations: 0.493 MB / 369.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1281, allocations: 0 / 369.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004805/0.1286, allocations: 356.7 kB / 369.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.1289, allocations: 32.5 kB / 369.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.1322, allocations: 3.73 MB / 373.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.1325, allocations: 0.7868 MB / 374.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.1327, allocations: 26.28 kB / 374.3 MB, free: 3.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.1328, allocations: 99.41 kB / 374.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1328, allocations: 4 kB / 374.4 MB, free: 3.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.1489, allocations: 5.091 MB / 379.5 MB, free: 14.42 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.1492, allocations: 235.5 kB / 379.7 MB, free: 14.19 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.018, allocations: 0 / 379.7 MB, free: 14.19 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