Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.001408/0.001408, allocations: 94.31 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.001693/0.001693, allocations: 180.2 kB / 17.2 MB, free: 5.914 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.439/1.439, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002558, allocations: 5.469 kB / 300.8 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1044, allocations: 50.42 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.003468/0.108, allocations: 2.261 MB / 353.5 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.1096, allocations: 0.7094 MB / 354.2 MB, free: 8.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.1099, allocations: 11.94 kB / 354.2 MB, free: 8.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.1102, allocations: 43.67 kB / 354.3 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003918/0.1106, allocations: 95.67 kB / 354.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.1109, allocations: 75.92 kB / 354.4 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.1114, allocations: 247.3 kB / 354.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.1117, allocations: 98.06 kB / 354.8 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003276/0.112, allocations: 127.5 kB / 354.9 MB, free: 7.949 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.1123, allocations: 147.3 kB / 355 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.864e-05/0.1123, allocations: 20 kB / 355.1 MB, free: 7.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.68e-05/0.1124, allocations: 16 kB / 355.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.113e-05/0.1125, allocations: 59.8 kB / 355.1 MB, free: 7.711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.933e-05/0.1126, allocations: 81.52 kB / 355.2 MB, free: 7.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.1129, allocations: 279.2 kB / 355.5 MB, free: 7.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1129, allocations: 3.938 kB / 355.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1129, allocations: 0 / 355.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.1129, allocations: 4 kB / 355.5 MB, free: 7.344 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00119/0.1141, allocations: 0.6002 MB / 356.1 MB, free: 6.695 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1142, allocations: 8.031 kB / 356.1 MB, free: 6.688 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.1143, allocations: 70.53 kB / 356.2 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.686e-05/0.1144, allocations: 39.48 kB / 356.2 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.1147, allocations: 262.5 kB / 356.5 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.1148, allocations: 20.66 kB / 356.5 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.295e-05/0.1148, allocations: 39.92 kB / 356.5 MB, free: 6.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006329/0.1155, allocations: 290 kB / 356.8 MB, free: 5.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1155, allocations: 0 / 356.8 MB, free: 5.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.1155, allocations: 16 kB / 356.8 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.1156, allocations: 11.95 kB / 356.8 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005983/0.1162, allocations: 266.5 kB / 357.1 MB, free: 5.641 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1178, allocations: 1.124 MB / 358.2 MB, free: 4.418 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.1183, allocations: 165.7 kB / 358.4 MB, free: 4.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.1183, allocations: 4 kB / 358.4 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.1183, allocations: 30.56 kB / 358.4 MB, free: 4.207 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.934e-06/0.1183, allocations: 3.938 kB / 358.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.002152/0.1205, allocations: 0.6717 MB / 359.1 MB, free: 3.523 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.1206, allocations: 55.59 kB / 359.1 MB, free: 3.457 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.1209, allocations: 266.5 kB / 359.4 MB, free: 3.191 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.1209, allocations: 29.7 kB / 359.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.1211, allocations: 223.5 kB / 359.6 MB, free: 2.934 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.105e-05/0.1211, allocations: 78.86 kB / 359.7 MB, free: 2.855 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.981e-05/0.1212, allocations: 4 kB / 359.7 MB, free: 2.852 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1213, allocations: 338.8 kB / 360.1 MB, free: 2.512 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000273/0.1216, allocations: 107.9 kB / 360.2 MB, free: 2.406 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003486/0.1219, allocations: 208 kB / 360.4 MB, free: 2.156 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.1223, allocations: 133.1 kB / 360.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1223, allocations: 3.953 kB / 360.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008098/0.1231, allocations: 409.5 kB / 360.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1231, allocations: 12 kB / 360.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1231, allocations: 4 kB / 360.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002484/0.1234, allocations: 53.69 kB / 361 MB, free: 1.539 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/0.1237, allocations: 79.89 kB / 361 MB, free: 1.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/0.1256, allocations: 2.648 MB / 363.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.1258, allocations: 39.94 kB / 363.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.1259, allocations: 12 kB / 363.7 MB, free: 14.49 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 (37): * Single equations (assignments): 35 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.126, allocations: 146.5 kB / 363.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.1261, allocations: 27.72 kB / 363.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.04e-05/0.1261, allocations: 26.17 kB / 363.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1262, allocations: 7.953 kB / 363.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1262, allocations: 3.938 kB / 364 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1262, allocations: 4 kB / 364 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003327/0.1265, allocations: 333.6 kB / 364.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1265, allocations: 0 / 364.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.1267, allocations: 47.97 kB / 364.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001345/0.1269, allocations: 53.67 kB / 364.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.1269, allocations: 4 kB / 364.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.1285, allocations: 2.648 MB / 367 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1285, allocations: 0 / 367 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006834/0.1292, allocations: 395.7 kB / 367.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.686e-05/0.1293, allocations: 100.7 kB / 367.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.1293, allocations: 8 kB / 367.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.1296, allocations: 19.98 kB / 367.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.1296, allocations: 19.97 kB / 367.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.1296, allocations: 8.328 kB / 367.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001589/0.1298, allocations: 182 kB / 367.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1298, allocations: 0 / 367.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003695/0.1302, allocations: 79.94 kB / 367.8 MB, free: 10.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009257/0.1311, allocations: 0.9245 MB / 368.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008716/0.132, allocations: 0.5001 MB / 369.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.132, allocations: 0 / 369.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004676/0.1325, allocations: 357.4 kB / 369.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.1328, allocations: 28.5 kB / 369.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.136, allocations: 3.668 MB / 373.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.1363, allocations: 0.783 MB / 374.1 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.1365, allocations: 26.28 kB / 374.1 MB, free: 3.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.1366, allocations: 95.41 kB / 374.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1366, allocations: 0 / 374.2 MB, free: 3.449 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.1526, allocations: 4.96 MB / 379.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.1528, allocations: 228.9 kB / 379.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/1.95, allocations: 3.938 kB / 379.4 MB, free: 14.46 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat