Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.CylinderLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001088/0.001088, allocations: 95.14 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 206.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002107/0.000211, allocations: 8 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09157/0.09179, 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.CylinderLeakage): time 0.004731/0.09657, allocations: 4.164 MB / 362.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003119/0.09973, allocations: 1.597 MB / 364 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.1, allocations: 16 kB / 364 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005646/0.1006, allocations: 198.8 kB / 364.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006683/0.1013, allocations: 303.2 kB / 364.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.1023, allocations: 0.5217 MB / 365 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006645/0.103, allocations: 0.5653 MB / 365.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00224/0.1053, allocations: 1.317 MB / 366.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006357/0.1059, allocations: 274.9 kB / 367.1 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005218/0.1065, allocations: 374.4 kB / 367.5 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.505e-05/0.1065, allocations: 36 kB / 367.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006467/0.1072, allocations: 203.7 kB / 367.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.1074, allocations: 127.5 kB / 367.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.1076, allocations: 173.3 kB / 368 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009414/0.1086, allocations: 0.8961 MB / 368.9 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1086, allocations: 0 / 368.9 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1086, allocations: 0 / 368.9 MB, free: 2.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1086, allocations: 0 / 368.9 MB, free: 2.98 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003742/0.1123, allocations: 1.307 MB / 370.2 MB, free: 1.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.1124, allocations: 12.03 kB / 370.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002084/0.1126, allocations: 152.2 kB / 370.4 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001597/0.1142, allocations: 250.8 kB / 370.7 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.1146, allocations: 255 kB / 370.9 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.425e-05/0.1146, allocations: 74 kB / 371 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.1148, allocations: 103.9 kB / 371.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1863/0.3011, allocations: 0.9172 MB / 372 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.575e-05/0.3012, allocations: 4.016 kB / 372 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.3013, allocations: 39.66 kB / 372 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.39e-05/0.3014, allocations: 24.53 kB / 372.1 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.3029, allocations: 0.7726 MB / 372.8 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005393/0.3083, allocations: 3.646 MB / 376.5 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.31, allocations: 1.248 MB / 377.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.3101, allocations: 184 kB / 377.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.3102, allocations: 48.2 kB / 378 MB, free: 15.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.745e-06/0.3102, allocations: 3.828 kB / 378 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.001913/0.3121, allocations: 1.293 MB / 379.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.3122, allocations: 91.67 kB / 379.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004089/0.3126, allocations: 362.9 kB / 379.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.3126, allocations: 36.58 kB / 379.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.3128, allocations: 390 kB / 380.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.313, allocations: 298.1 kB / 380.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.313, allocations: 21.62 kB / 380.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.292e-05/0.3131, allocations: 363.4 kB / 380.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.3135, allocations: 259.3 kB / 381 MB, free: 13.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004936/0.314, allocations: 466 kB / 381.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.3145, allocations: 335.1 kB / 381.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3145, allocations: 2.031 kB / 381.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001417/0.3159, allocations: 0.9693 MB / 382.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.316, allocations: 8.062 kB / 382.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.316, allocations: 9.375 kB / 382.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003915/0.3164, allocations: 124.6 kB / 382.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007665/0.3172, allocations: 207.2 kB / 383.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003203/0.3204, allocations: 5.588 MB / 388.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/0.3211, allocations: 100.7 kB / 388.8 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-05/0.3212, allocations: 39.64 kB / 388.8 MB, free: 6.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004029/0.3216, allocations: 228.7 kB / 389.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3217, allocations: 53.45 kB / 389.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.3233, allocations: 0.8533 MB / 390 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3233, allocations: 8.594 kB / 390 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.3233, allocations: 3.219 kB / 390 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.3233, allocations: 3.938 kB / 390 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/0.3264, allocations: 2.086 MB / 392.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.617e-06/0.3264, allocations: 3.281 kB / 392.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005629/0.327, allocations: 138.3 kB / 392.2 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002834/0.3273, allocations: 110.7 kB / 392.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.396e-05/0.3274, allocations: 24.69 kB / 392.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002782/0.3301, allocations: 5.326 MB / 397.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3302, allocations: 10.69 kB / 397.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.3321, allocations: 1.384 MB / 399.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001785/0.3322, allocations: 146.9 kB / 399.2 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.103e-05/0.3323, allocations: 14.7 kB / 399.2 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000379/0.3327, allocations: 25.91 kB / 399.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.3328, allocations: 65.84 kB / 399.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.284e-05/0.3329, allocations: 29.28 kB / 399.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002886/0.3332, allocations: 248.8 kB / 399.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3332, allocations: 0 / 399.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009755/0.3342, allocations: 265 kB / 399.8 MB, free: 13.91 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (78): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 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.002343/0.3365, allocations: 2.663 MB / 402.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.3382, allocations: 1.161 MB / 403.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.3382, allocations: 1.375 kB / 403.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008496/0.3391, allocations: 0.7896 MB / 404.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.3395, allocations: 58.61 kB / 404.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006978/0.3465, allocations: 7.325 MB / 411.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000576/0.3471, allocations: 0.9275 MB / 412.8 MB, free: 3.844 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005211/0.3476, allocations: 106.2 kB / 412.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.348, allocations: 241.8 kB / 413.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.348, allocations: 3.469 kB / 413.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.3723, allocations: 11.79 MB / 424.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.3726, allocations: 225.5 kB / 425.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/2.655, allocations: 0 / 425.1 MB, free: 9.215 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat