Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 95.62 kB / 16.95 MB, free: 6.469 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.001397/0.001398, allocations: 182.2 kB / 17.84 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008125/0.0008126, allocations: 11.44 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1093, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003061/0.1124, allocations: 2.249 MB / 330.7 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1143, allocations: 1.084 MB / 331.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.1146, allocations: 8 kB / 331.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003411/0.1149, allocations: 99.52 kB / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003251/0.1152, allocations: 107.3 kB / 332 MB, free: 424 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.1164, allocations: 0.5453 MB / 332.5 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.1168, allocations: 270.7 kB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009766/0.1178, allocations: 0.5297 MB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.118, allocations: 99.64 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.1182, allocations: 147.4 kB / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.1182, allocations: 12 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003378/0.1185, allocations: 151.8 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.161e-05/0.1186, allocations: 47.78 kB / 333.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.508e-05/0.1187, allocations: 81.58 kB / 333.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.1191, allocations: 367.3 kB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.1191, allocations: 0 / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1191, allocations: 3.938 kB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1191, allocations: 0 / 334.2 MB, free: 14.16 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001488/0.1206, allocations: 0.6668 MB / 334.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1207, allocations: 12.03 kB / 334.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.978e-05/0.1208, allocations: 66.53 kB / 335 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007243/0.1215, allocations: 123.5 kB / 335.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.1219, allocations: 258.9 kB / 335.3 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.1219, allocations: 24.66 kB / 335.4 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.122, allocations: 36 kB / 335.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.1225, allocations: 337 kB / 335.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.1225, allocations: 0 / 335.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.1226, allocations: 16 kB / 335.8 MB, free: 12.53 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.1226, allocations: 11.98 kB / 335.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003979/0.123, allocations: 234.5 kB / 336 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.125, allocations: 1.451 MB / 337.4 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007093/0.1257, allocations: 0.7006 MB / 338.1 MB, free: 9.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.1259, allocations: 97.58 kB / 338.2 MB, free: 9.773 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/0.126, allocations: 89.05 kB / 338.3 MB, free: 9.668 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1261, allocations: 38.5 kB / 338.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.1261, allocations: 4 kB / 338.4 MB, free: 9.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001158/0.1272, allocations: 499.3 kB / 338.9 MB, free: 9.102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.1273, allocations: 51.41 kB / 338.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.1275, allocations: 175.3 kB / 339.1 MB, free: 8.855 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1275, allocations: 29.7 kB / 339.1 MB, free: 8.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.1276, allocations: 183.9 kB / 339.3 MB, free: 8.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.034e-05/0.1277, allocations: 78.84 kB / 339.4 MB, free: 8.555 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.212e-05/0.1277, allocations: 8 kB / 339.4 MB, free: 8.547 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1279, allocations: 334.8 kB / 339.7 MB, free: 8.211 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.128, allocations: 60.55 kB / 339.8 MB, free: 8.152 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.1281, allocations: 128.2 kB / 339.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.1283, allocations: 81.17 kB / 340 MB, free: 7.926 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1283, allocations: 0 / 340 MB, free: 7.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005329/0.1288, allocations: 333 kB / 340.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1289, allocations: 4 kB / 340.3 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1289, allocations: 4 kB / 340.3 MB, free: 7.586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.1292, allocations: 76.73 kB / 340.4 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.1293, allocations: 39.98 kB / 340.4 MB, free: 7.469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.1312, allocations: 1.85 MB / 342.3 MB, free: 5.484 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1313, allocations: 23.78 kB / 342.3 MB, free: 5.461 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.1314, allocations: 15.94 kB / 342.3 MB, free: 5.445 MB / 286.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.0001514/0.1315, allocations: 141.8 kB / 342.4 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.1316, allocations: 23.67 kB / 342.5 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005361/0.1321, allocations: 292.7 kB / 342.7 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1322, allocations: 4 kB / 342.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1322, allocations: 0 / 342.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1322, allocations: 4 kB / 342.8 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009355/0.1331, allocations: 0.6866 MB / 343.4 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1331, allocations: 0 / 343.4 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.1332, allocations: 27.92 kB / 343.5 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.1335, allocations: 72.8 kB / 343.5 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.049e-05/0.1335, allocations: 8 kB / 343.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/0.1353, allocations: 1.835 MB / 345.4 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1353, allocations: 0 / 345.4 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.1359, allocations: 443.7 kB / 345.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.722e-05/0.136, allocations: 113 kB / 345.9 MB, free: 1.566 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.136, allocations: 7.938 kB / 345.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.1362, allocations: 12 kB / 345.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.1362, allocations: 19.97 kB / 346 MB, free: 1.527 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.1362, allocations: 4 kB / 346 MB, free: 1.523 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001011/0.1363, allocations: 127.5 kB / 346.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1363, allocations: 0 / 346.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004727/0.1368, allocations: 99.69 kB / 346.2 MB, free: 1.301 MB / 286.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.0009778/0.1378, allocations: 1.006 MB / 347.2 MB, free: 272 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005901/0.1384, allocations: 338.3 kB / 347.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1384, allocations: 3.938 kB / 347.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.1387, allocations: 239.1 kB / 347.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.1391, allocations: 20 kB / 347.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.1412, allocations: 1.455 MB / 349.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.1416, allocations: 0.7558 MB / 350 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.1417, allocations: 21.95 kB / 350 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.898e-05/0.1418, allocations: 71.41 kB / 350.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1418, allocations: 0 / 350.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.1591, allocations: 4.494 MB / 354.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.1593, allocations: 233.5 kB / 354.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.092, allocations: 0 / 354.8 MB, free: 8.52 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat