Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.00102/0.00102, allocations: 86.8 kB / 16.31 MB, free: 6.449 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.001037/0.001037, allocations: 180.9 kB / 17.21 MB, free: 6.32 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.352/1.352, allocations: 223.3 MB / 241.2 MB, free: 5.273 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002827, allocations: 7.781 kB / 300.9 MB, free: 5.566 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1101, allocations: 50.42 MB / 351.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.00368/0.1138, allocations: 2.978 MB / 354.3 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.1153, allocations: 0.8767 MB / 355.2 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.1155, allocations: 8 kB / 355.2 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.1157, allocations: 63.47 kB / 355.3 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003351/0.116, allocations: 131.1 kB / 355.4 MB, free: 7.242 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003004/0.1164, allocations: 127.8 kB / 355.5 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005648/0.1169, allocations: 0.5685 MB / 356.1 MB, free: 6.547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.1172, allocations: 150.1 kB / 356.2 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.1175, allocations: 207.1 kB / 356.4 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.1177, allocations: 230.9 kB / 356.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.456e-05/0.1178, allocations: 28 kB / 356.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.936e-05/0.1179, allocations: 28 kB / 356.7 MB, free: 5.898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-05/0.118, allocations: 99.53 kB / 356.8 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.689e-05/0.1181, allocations: 113.5 kB / 356.9 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004887/0.1186, allocations: 470.6 kB / 357.4 MB, free: 5.219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1186, allocations: 0 / 357.4 MB, free: 5.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1186, allocations: 4 kB / 357.4 MB, free: 5.215 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1186, allocations: 4 kB / 357.4 MB, free: 5.211 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001263/0.1199, allocations: 0.768 MB / 358.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1199, allocations: 15.97 kB / 358.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.12, allocations: 90.52 kB / 358.3 MB, free: 4.281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.1201, allocations: 63.2 kB / 358.3 MB, free: 4.219 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.1205, allocations: 342 kB / 358.7 MB, free: 3.848 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.768e-05/0.1206, allocations: 37.31 kB / 358.7 MB, free: 3.809 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.701e-05/0.1207, allocations: 48 kB / 358.7 MB, free: 3.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008113/0.1215, allocations: 442.5 kB / 359.2 MB, free: 3.324 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1215, allocations: 0 / 359.2 MB, free: 3.324 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.1215, allocations: 23.98 kB / 359.2 MB, free: 3.301 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.1216, allocations: 15.95 kB / 359.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008376/0.1224, allocations: 409 kB / 359.6 MB, free: 2.887 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.1248, allocations: 1.589 MB / 361.2 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006835/0.1255, allocations: 405.4 kB / 361.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000431/0.1259, allocations: 201.5 kB / 361.8 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.126, allocations: 8.266 kB / 361.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.126, allocations: 34.89 kB / 361.8 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.255e-06/0.126, allocations: 4 kB / 361.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.003096/0.1291, allocations: 1.281 MB / 363.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.1292, allocations: 55.97 kB / 363.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004224/0.1296, allocations: 397.5 kB / 363.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.1296, allocations: 37.7 kB / 363.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.1298, allocations: 295.8 kB / 363.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.13, allocations: 189.2 kB / 364.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/0.13, allocations: 12 kB / 364.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1302, allocations: 358.8 kB / 364.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004142/0.1306, allocations: 181.2 kB / 364.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005038/0.1311, allocations: 311 kB / 364.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004606/0.1316, allocations: 226.1 kB / 365.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1316, allocations: 4 kB / 365.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001376/0.133, allocations: 0.7537 MB / 365.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.133, allocations: 6.031 kB / 365.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.133, allocations: 4 kB / 365.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000517/0.1336, allocations: 185.6 kB / 366.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.134, allocations: 119.8 kB / 366.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003917/0.138, allocations: 3.87 MB / 370.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.1384, allocations: 35.89 kB / 370.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.1384, allocations: 27.95 kB / 370.1 MB, free: 7.844 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 (58): * Single equations (assignments): 56 * 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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002351/0.1387, allocations: 186.2 kB / 370.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.91e-05/0.1387, allocations: 47.42 kB / 370.4 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.1389, allocations: 57.03 kB / 370.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1389, allocations: 4 kB / 370.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.1389, allocations: 4 kB / 370.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.1389, allocations: 3.984 kB / 370.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.1411, allocations: 1.328 MB / 371.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.1411, allocations: 4.188 kB / 371.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00028/0.1414, allocations: 67.89 kB / 371.8 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003862/0.1418, allocations: 165.7 kB / 372 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.1419, allocations: 12 kB / 372 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003514/0.1454, allocations: 3.709 MB / 375.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.1454, allocations: 4.031 kB / 375.7 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.1466, allocations: 0.716 MB / 376.4 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.1468, allocations: 124.6 kB / 376.6 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.835e-05/0.1468, allocations: 15.94 kB / 376.6 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.1471, allocations: 19.98 kB / 376.6 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.732e-05/0.1472, allocations: 48.36 kB / 376.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.1472, allocations: 16 kB / 376.7 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002927/0.1475, allocations: 275.2 kB / 376.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1475, allocations: 0 / 376.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000699/0.1482, allocations: 152 kB / 377.1 MB, free: 0.4961 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 33 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001523/0.1497, allocations: 1.269 MB / 378.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.1513, allocations: 0.7971 MB / 379.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1513, allocations: 4.125 kB / 379.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008159/0.1521, allocations: 0.5312 MB / 379.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004692/0.1526, allocations: 46.3 kB / 379.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004598/0.1572, allocations: 2.957 MB / 382.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000419/0.1576, allocations: 0.8591 MB / 383.5 MB, free: 9.797 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001947/0.1578, allocations: 44.36 kB / 383.6 MB, free: 9.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.1581, allocations: 179.4 kB / 383.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1581, allocations: 0 / 383.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.1803, allocations: 8.725 MB / 392.5 MB, free: 1.066 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.1806, allocations: 233.1 kB / 392.7 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.235, allocations: 4.062 kB / 392.7 MB, free: 0.8203 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat