Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001083/0.001083, allocations: 98.89 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002123/0.0002124, allocations: 11.98 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1022, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003431/0.1057, allocations: 2.271 MB / 360.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.1075, allocations: 1.087 MB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1077, allocations: 8 kB / 361.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003214/0.108, allocations: 103.4 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004028/0.1085, allocations: 123.7 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1095, allocations: 0.5332 MB / 362.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.1099, allocations: 219.5 kB / 362.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009844/0.1109, allocations: 0.5064 MB / 363.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002593/0.1111, allocations: 103.6 kB / 363.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.1113, allocations: 135.5 kB / 363.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.1114, allocations: 12 kB / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003874/0.1118, allocations: 151.8 kB / 363.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.363e-05/0.1118, allocations: 43.83 kB / 363.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.236e-05/0.1119, allocations: 81.52 kB / 363.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004305/0.1123, allocations: 375.2 kB / 363.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1123, allocations: 0 / 363.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1124, allocations: 0 / 363.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.854e-06/0.1124, allocations: 0 / 363.9 MB, free: 7.996 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001552/0.1139, allocations: 0.6715 MB / 364.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.114, allocations: 8.031 kB / 364.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.049e-05/0.1141, allocations: 74.47 kB / 364.7 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007676/0.1148, allocations: 119.5 kB / 364.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.1152, allocations: 253.6 kB / 365.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.1152, allocations: 32.66 kB / 365.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.1153, allocations: 35.95 kB / 365.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005598/0.1159, allocations: 321.1 kB / 365.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.1159, allocations: 0 / 365.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.1159, allocations: 12 kB / 365.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.1159, allocations: 8 kB / 365.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.1163, allocations: 242.5 kB / 365.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.1185, allocations: 1.447 MB / 367.1 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009061/0.1194, allocations: 0.7113 MB / 367.8 MB, free: 3.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000192/0.1196, allocations: 166.2 kB / 368 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.1197, allocations: 38.56 kB / 368 MB, free: 3.473 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1197, allocations: 0 / 368 MB, free: 3.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.00119/0.1209, allocations: 494.6 kB / 368.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.1209, allocations: 59.27 kB / 368.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.1211, allocations: 177.1 kB / 368.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.1211, allocations: 29.7 kB / 368.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.1213, allocations: 179.9 kB / 369 MB, free: 2.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.152e-05/0.1214, allocations: 74.86 kB / 369 MB, free: 2.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.1214, allocations: 4 kB / 369 MB, free: 2.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002719/0.1217, allocations: 334.8 kB / 369.4 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.1218, allocations: 64.55 kB / 369.4 MB, free: 2.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.1219, allocations: 129 kB / 369.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.1221, allocations: 94.05 kB / 369.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1221, allocations: 0 / 369.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005373/0.1226, allocations: 319.9 kB / 370 MB, free: 1.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1227, allocations: 16.16 kB / 370 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1227, allocations: 0 / 370 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003207/0.123, allocations: 80.73 kB / 370.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.1232, allocations: 43.92 kB / 370.1 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.183/0.3062, allocations: 1.843 MB / 371.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/0.3064, allocations: 27.67 kB / 372 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.3065, allocations: 8.5 kB / 372 MB, free: 17.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000139/0.3066, allocations: 151.4 kB / 372.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/0.3067, allocations: 19.08 kB / 372.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005323/0.3072, allocations: 286.6 kB / 372.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3072, allocations: 3.125 kB / 372.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3072, allocations: 1.344 kB / 372.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3072, allocations: 3.969 kB / 372.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009033/0.3082, allocations: 0.6864 MB / 373.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3082, allocations: 0 / 373.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.3083, allocations: 23.44 kB / 373.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/0.3085, allocations: 80.95 kB / 373.2 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.3086, allocations: 9.625 kB / 373.2 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.31, allocations: 1.854 MB / 375.1 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3101, allocations: 0.6094 kB / 375.1 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006348/0.3107, allocations: 447.7 kB / 375.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.012e-05/0.3108, allocations: 112.9 kB / 375.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.3108, allocations: 4.5 kB / 375.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.3109, allocations: 5.391 kB / 375.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.311, allocations: 18.03 kB / 375.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.311, allocations: 8.5 kB / 375.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001202/0.3111, allocations: 127.4 kB / 375.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3111, allocations: 0 / 375.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005332/0.3117, allocations: 94.84 kB / 375.9 MB, free: 15.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000961/0.3126, allocations: 1.016 MB / 376.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006364/0.3133, allocations: 332 kB / 377.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3133, allocations: 3.625 kB / 377.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.3136, allocations: 248.2 kB / 377.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.3139, allocations: 16.2 kB / 377.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.3161, allocations: 2.503 MB / 380 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.3163, allocations: 0.7626 MB / 380.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.3164, allocations: 23.89 kB / 380.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.644e-05/0.3165, allocations: 76.42 kB / 380.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3165, allocations: 0 / 380.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0177/0.3343, allocations: 4.619 MB / 385.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.3344, allocations: 229.6 kB / 385.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/2.225, allocations: 0 / 385.7 MB, free: 11.45 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat