Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001086/0.001086, allocations: 95.86 kB / 16.98 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.001062/0.001062, allocations: 201.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 4 kB / 306.7 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1088, allocations: 51.5 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.002967/0.1118, allocations: 2.28 MB / 360.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1132, allocations: 0.7561 MB / 361.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.1134, allocations: 7.938 kB / 361.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.1135, allocations: 47.69 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000266/0.1138, allocations: 91.72 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.1141, allocations: 79.86 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/0.1144, allocations: 251.5 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.1147, allocations: 97.81 kB / 361.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.1149, allocations: 135.4 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001829/0.1151, allocations: 143.4 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.1152, allocations: 20 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.273e-05/0.1152, allocations: 20 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.405e-05/0.1153, allocations: 59.75 kB / 362.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.722e-05/0.1154, allocations: 81.52 kB / 362.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.1156, allocations: 295.4 kB / 362.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1156, allocations: 0 / 362.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1156, allocations: 0 / 362.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1157, allocations: 0 / 362.5 MB, free: 9.613 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001065/0.1167, allocations: 0.5964 MB / 363.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1168, allocations: 12.03 kB / 363.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.169e-05/0.1169, allocations: 70.53 kB / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.1169, allocations: 39.53 kB / 363.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.1173, allocations: 271.3 kB / 363.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.1173, allocations: 20.66 kB / 363.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.1174, allocations: 43.88 kB / 363.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006678/0.1181, allocations: 290 kB / 363.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.1181, allocations: 0 / 363.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.1181, allocations: 16 kB / 363.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.1182, allocations: 8 kB / 363.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006321/0.1188, allocations: 270.4 kB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.1206, allocations: 1.116 MB / 365.3 MB, free: 6.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.121, allocations: 154.6 kB / 365.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.121, allocations: 8 kB / 365.4 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1211, allocations: 30.56 kB / 365.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.635e-06/0.1211, allocations: 0 / 365.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.002099/0.1232, allocations: 0.6789 MB / 366.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.1233, allocations: 55.59 kB / 366.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000351/0.1236, allocations: 270.5 kB / 366.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.1236, allocations: 29.7 kB / 366.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.1238, allocations: 223.5 kB / 366.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.1239, allocations: 82.98 kB / 366.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.339e-05/0.1239, allocations: 4 kB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.124, allocations: 334.8 kB / 367.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.1243, allocations: 99.94 kB / 367.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.1247, allocations: 208 kB / 367.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003096/0.125, allocations: 129.1 kB / 367.5 MB, free: 4.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.125, allocations: 4 kB / 367.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008228/0.1258, allocations: 411.4 kB / 367.9 MB, free: 3.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1259, allocations: 8 kB / 368 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.1259, allocations: 4 kB / 368 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002485/0.1261, allocations: 69.59 kB / 368 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.1265, allocations: 79.83 kB / 368.1 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.129, allocations: 2.648 MB / 370.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.1293, allocations: 31.92 kB / 370.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.1293, allocations: 12 kB / 370.8 MB, free: 0.7539 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.0001704/0.1295, allocations: 162.4 kB / 371 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.135e-05/0.1295, allocations: 27.62 kB / 371 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.017e-05/0.1296, allocations: 34.17 kB / 371 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1296, allocations: 4 kB / 371 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1296, allocations: 0 / 371 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1296, allocations: 0 / 371 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003656/0.13, allocations: 333.6 kB / 371.3 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.13, allocations: 0 / 371.3 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002082/0.1302, allocations: 55.89 kB / 371.4 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001396/0.1304, allocations: 49.69 kB / 371.4 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.1304, allocations: 0 / 371.4 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2075/0.3379, allocations: 2.635 MB / 374.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3379, allocations: 3.188 kB / 374.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009186/0.3388, allocations: 403.7 kB / 374.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.071e-05/0.3389, allocations: 102.9 kB / 374.6 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.339, allocations: 8.781 kB / 374.6 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.3392, allocations: 21.36 kB / 374.6 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.24e-05/0.3393, allocations: 19.02 kB / 374.6 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.3393, allocations: 5.125 kB / 374.6 MB, free: 16.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002035/0.3395, allocations: 187.8 kB / 374.8 MB, free: 16.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.3395, allocations: 0 / 374.8 MB, free: 16.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004601/0.34, allocations: 73.44 kB / 374.9 MB, free: 16.68 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.0009889/0.341, allocations: 0.9321 MB / 375.8 MB, free: 16.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.342, allocations: 497.3 kB / 376.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.342, allocations: 3.281 kB / 376.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.3425, allocations: 356.5 kB / 376.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.3429, allocations: 23.78 kB / 376.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.3465, allocations: 3.688 MB / 380.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.3468, allocations: 0.7796 MB / 381.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001628/0.347, allocations: 33.56 kB / 381.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.3472, allocations: 100.8 kB / 381.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of SimCode: time 1.713e-06/0.3472, allocations: 0 / 381.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.3682, allocations: 5.003 MB / 386.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.3684, allocations: 228.7 kB / 386.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.236, allocations: 0 / 386.5 MB, free: 11.54 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat