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.001004/0.001004, allocations: 91.23 kB / 17 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 193.5 kB / 17.9 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002393, allocations: 4 kB / 306.8 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 51.5 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002734/0.106, allocations: 2.376 MB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.1077, allocations: 1.099 MB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.1078, allocations: 8 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002992/0.1081, allocations: 91.52 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.1084, allocations: 115.3 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009847/0.1094, allocations: 0.5335 MB / 362.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.1097, allocations: 278.6 kB / 362.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008798/0.1106, allocations: 0.5214 MB / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.1108, allocations: 107.6 kB / 363.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.1109, allocations: 139.5 kB / 363.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.111, allocations: 12 kB / 363.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002876/0.1113, allocations: 167.8 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.45e-05/0.1113, allocations: 51.78 kB / 363.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.858e-05/0.1114, allocations: 73.58 kB / 363.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.1118, allocations: 375.2 kB / 364.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1118, allocations: 4 kB / 364.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1118, allocations: 0 / 364.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1118, allocations: 0 / 364.2 MB, free: 7.984 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.001411/0.1132, allocations: 0.6707 MB / 364.9 MB, free: 7.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1133, allocations: 8.031 kB / 364.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.874e-05/0.1133, allocations: 70.53 kB / 365 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007388/0.1141, allocations: 123.5 kB / 365.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.1144, allocations: 253.5 kB / 365.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.58e-05/0.1145, allocations: 32.59 kB / 365.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.1145, allocations: 39.94 kB / 365.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/0.115, allocations: 325.1 kB / 365.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.115, allocations: 0 / 365.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.1151, allocations: 15.94 kB / 365.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.1151, allocations: 8 kB / 365.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003662/0.1155, allocations: 234.5 kB / 366 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1173, allocations: 1.467 MB / 367.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006167/0.1179, allocations: 0.6963 MB / 368.2 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.1181, allocations: 96.83 kB / 368.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001847/0.1183, allocations: 170.2 kB / 368.4 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1183, allocations: 38.97 kB / 368.5 MB, free: 3.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.216e-06/0.1183, allocations: 3.984 kB / 368.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001181/0.1195, allocations: 498.1 kB / 368.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.1195, allocations: 67.28 kB / 369 MB, free: 2.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.1197, allocations: 169.2 kB / 369.2 MB, free: 2.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.1198, allocations: 29.7 kB / 369.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1199, allocations: 179.9 kB / 369.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.097e-05/0.12, allocations: 86.84 kB / 369.5 MB, free: 2.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.497e-05/0.12, allocations: 4 kB / 369.5 MB, free: 2.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1202, allocations: 326.8 kB / 369.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1203, allocations: 72.47 kB / 369.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.1204, allocations: 125 kB / 370 MB, free: 1.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.1206, allocations: 90.11 kB / 370.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1206, allocations: 3.938 kB / 370.1 MB, free: 1.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005069/0.1211, allocations: 324.1 kB / 370.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1211, allocations: 8 kB / 370.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1211, allocations: 0 / 370.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/0.1214, allocations: 76.75 kB / 370.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.1216, allocations: 43.92 kB / 370.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1858/0.3074, allocations: 1.831 MB / 372.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.3076, allocations: 22.25 kB / 372.4 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.3076, allocations: 12.2 kB / 372.4 MB, free: 17.95 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.0001347/0.3077, allocations: 144.9 kB / 372.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.3078, allocations: 19.14 kB / 372.5 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005358/0.3083, allocations: 283 kB / 372.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.3084, allocations: 5.219 kB / 372.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.3084, allocations: 1.812 kB / 372.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3084, allocations: 3.812 kB / 372.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008374/0.3092, allocations: 0.689 MB / 373.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.3092, allocations: 3.75 kB / 373.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.3093, allocations: 23.28 kB / 373.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002223/0.3096, allocations: 70.64 kB / 373.6 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.3096, allocations: 6.469 kB / 373.6 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/0.311, allocations: 1.837 MB / 375.5 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.311, allocations: 192 / 375.5 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005942/0.3116, allocations: 445.9 kB / 375.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.97e-05/0.3117, allocations: 112.8 kB / 376 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.3117, allocations: 10.09 kB / 376 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3118, allocations: 7.562 kB / 376 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.824e-05/0.3118, allocations: 21.53 kB / 376 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.3119, allocations: 7.516 kB / 376 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.293e-05/0.312, allocations: 127.3 kB / 376.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.312, allocations: 0.8438 kB / 376.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004896/0.3125, allocations: 89.56 kB / 376.3 MB, free: 15.77 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.0009022/0.3134, allocations: 1.007 MB / 377.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000511/0.3139, allocations: 341.6 kB / 377.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3139, allocations: 0 / 377.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002875/0.3142, allocations: 248.3 kB / 377.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.3145, allocations: 21.67 kB / 377.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.3164, allocations: 1.459 MB / 379.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.3166, allocations: 0.7518 MB / 380.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.3168, allocations: 25.52 kB / 380.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.875e-05/0.3169, allocations: 72.05 kB / 380.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3169, allocations: 0 / 380.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.3346, allocations: 4.646 MB / 384.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.3347, allocations: 234.4 kB / 385 MB, free: 12.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.192, allocations: 3.5 kB / 385.1 MB, free: 12.62 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