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.001083/0.001083, allocations: 97.06 kB / 16.3 MB, free: 5.996 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.001005/0.001005, allocations: 182.3 kB / 17.2 MB, free: 5.906 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.346/1.346, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002714, allocations: 10.62 kB / 300.8 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1117, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.003572/0.1153, allocations: 2.822 MB / 354 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.1171, allocations: 0.9003 MB / 354.9 MB, free: 7.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.1174, allocations: 4 kB / 355 MB, free: 7.914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.1176, allocations: 67.47 kB / 355 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004089/0.1181, allocations: 147.6 kB / 355.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.1184, allocations: 131.7 kB / 355.3 MB, free: 7.574 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004562/0.1189, allocations: 411.6 kB / 355.7 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002934/0.1192, allocations: 150.2 kB / 355.8 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.1195, allocations: 203.2 kB / 356 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.1197, allocations: 238.9 kB / 356.3 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.05e-05/0.1198, allocations: 28 kB / 356.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.624e-05/0.1199, allocations: 28 kB / 356.3 MB, free: 6.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.684e-05/0.12, allocations: 95.59 kB / 356.4 MB, free: 6.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.1201, allocations: 113.5 kB / 356.5 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.1206, allocations: 466.6 kB / 357 MB, free: 5.852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1206, allocations: 0 / 357 MB, free: 5.852 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1206, allocations: 0 / 357 MB, free: 5.852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1206, allocations: 0 / 357 MB, free: 5.852 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.001491/0.1221, allocations: 0.7757 MB / 357.8 MB, free: 5.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.1222, allocations: 12.03 kB / 357.8 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001158/0.1223, allocations: 98.39 kB / 357.9 MB, free: 4.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.759e-05/0.1224, allocations: 63.2 kB / 357.9 MB, free: 4.848 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.1228, allocations: 338 kB / 358.3 MB, free: 4.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.1229, allocations: 45.23 kB / 358.3 MB, free: 4.434 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.031e-05/0.123, allocations: 52 kB / 358.4 MB, free: 4.383 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000797/0.1238, allocations: 438.5 kB / 358.8 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1238, allocations: 0 / 358.8 MB, free: 3.949 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.1239, allocations: 23.98 kB / 358.8 MB, free: 3.926 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.1239, allocations: 15.95 kB / 358.8 MB, free: 3.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009097/0.1248, allocations: 405 kB / 359.2 MB, free: 3.516 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.1273, allocations: 1.593 MB / 360.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007876/0.1281, allocations: 413.3 kB / 361.2 MB, free: 1.383 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.1282, allocations: 16.38 kB / 361.2 MB, free: 1.367 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.1283, allocations: 38.89 kB / 361.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.054e-06/0.1283, allocations: 0 / 361.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.003611/0.1319, allocations: 1.396 MB / 362.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.1319, allocations: 55.97 kB / 362.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004875/0.1324, allocations: 393.5 kB / 363.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.1325, allocations: 37.7 kB / 363.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.1327, allocations: 303.8 kB / 363.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.1329, allocations: 185.3 kB / 363.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/0.1329, allocations: 12 kB / 363.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.1331, allocations: 358.8 kB / 364 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004082/0.1335, allocations: 189.2 kB / 364.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.134, allocations: 302.1 kB / 364.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/0.1345, allocations: 230.1 kB / 364.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1345, allocations: 0 / 364.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001415/0.1359, allocations: 0.7615 MB / 365.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.136, allocations: 6.031 kB / 365.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.136, allocations: 4 kB / 365.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005711/0.1365, allocations: 197.7 kB / 365.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004841/0.137, allocations: 119.8 kB / 365.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004289/0.1413, allocations: 4.003 MB / 369.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004639/0.1418, allocations: 31.98 kB / 369.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.1419, allocations: 24 kB / 369.8 MB, free: 8.379 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 {(2,100.0%) 11,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002716/0.1422, allocations: 182.2 kB / 370 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.572e-05/0.1422, allocations: 55.39 kB / 370.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.1424, allocations: 61.03 kB / 370.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1424, allocations: 4 kB / 370.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.938e-05/0.1424, allocations: 4 kB / 370.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.1424, allocations: 3.984 kB / 370.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.1447, allocations: 1.314 MB / 371.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1447, allocations: 96 / 371.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.145, allocations: 79.92 kB / 371.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004503/0.1455, allocations: 174.5 kB / 371.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.1455, allocations: 12 kB / 371.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004027/0.1495, allocations: 3.893 MB / 375.6 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1495, allocations: 0 / 375.6 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.1509, allocations: 0.7627 MB / 376.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.1511, allocations: 120.5 kB / 376.5 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.1511, allocations: 15.95 kB / 376.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.1514, allocations: 27.98 kB / 376.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.1515, allocations: 48.31 kB / 376.6 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.1516, allocations: 15.98 kB / 376.6 MB, free: 1.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003406/0.1519, allocations: 267.2 kB / 376.8 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1519, allocations: 0 / 376.8 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000778/0.1527, allocations: 156 kB / 377 MB, free: 0.7812 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (33): * Single equations (assignments): 31 * 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 {(2,100.0%) 10,(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001712/0.1544, allocations: 1.526 MB / 378.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.156, allocations: 0.816 MB / 379.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1561, allocations: 0.75 kB / 379.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009312/0.157, allocations: 0.5622 MB / 379.9 MB, free: 13.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.1574, allocations: 33.98 kB / 379.9 MB, free: 13.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005805/0.1632, allocations: 4.758 MB / 384.7 MB, free: 8.859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.1638, allocations: 0.8795 MB / 385.6 MB, free: 7.949 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002119/0.164, allocations: 44.36 kB / 385.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.1642, allocations: 171.4 kB / 385.8 MB, free: 7.738 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1643, allocations: 0 / 385.8 MB, free: 7.738 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.1878, allocations: 8.866 MB / 394.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/0.1881, allocations: 237.3 kB / 394.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.16, allocations: 0 / 394.9 MB, free: 14.84 MB / 334.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