Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001354, allocations: 94.95 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.001643/0.001643, allocations: 205.4 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.396/1.396, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002455/0.0002455, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1095, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003164/0.1127, allocations: 2.304 MB / 360.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.1146, allocations: 1.189 MB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.1148, allocations: 7.938 kB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.115, allocations: 55.59 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004733/0.1154, allocations: 207.4 kB / 362 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.1157, allocations: 95.81 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.116, allocations: 280 kB / 362.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.1162, allocations: 65.2 kB / 362.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.1164, allocations: 159.5 kB / 362.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.1167, allocations: 199.3 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.487e-05/0.1167, allocations: 24 kB / 362.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002593/0.117, allocations: 139.9 kB / 362.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-05/0.1171, allocations: 79.7 kB / 363 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.864e-05/0.1171, allocations: 77.58 kB / 363.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003815/0.1175, allocations: 371.2 kB / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.1175, allocations: 0 / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1176, allocations: 0 / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1176, allocations: 0 / 363.4 MB, free: 8.512 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001449/0.119, allocations: 0.6585 MB / 364.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1191, allocations: 12.03 kB / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.13e-05/0.1192, allocations: 62.53 kB / 364.2 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.1193, allocations: 51.52 kB / 364.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.1198, allocations: 312.2 kB / 364.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.785e-05/0.1198, allocations: 58.2 kB / 364.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.12, allocations: 39.94 kB / 364.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005897/0.1206, allocations: 320.5 kB / 364.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.1206, allocations: 0 / 364.9 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.1206, allocations: 12 kB / 364.9 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1207, allocations: 8 kB / 364.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006241/0.1213, allocations: 314 kB / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.1229, allocations: 1.164 MB / 366.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005784/0.1235, allocations: 301 kB / 366.7 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.1236, allocations: 11.94 kB / 366.7 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.1236, allocations: 34.56 kB / 366.7 MB, free: 4.957 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1236, allocations: 4 kB / 366.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.008858/0.1325, allocations: 2.529 MB / 369.3 MB, free: 2.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.1326, allocations: 85.05 kB / 369.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/0.1329, allocations: 289 kB / 369.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.1329, allocations: 33.7 kB / 369.7 MB, free: 1.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.133, allocations: 168.4 kB / 369.8 MB, free: 1.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.1332, allocations: 149.9 kB / 370 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.1332, allocations: 11.94 kB / 370 MB, free: 1.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1333, allocations: 342.8 kB / 370.3 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.1337, allocations: 172.8 kB / 370.5 MB, free: 1.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.1341, allocations: 226.7 kB / 370.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004081/0.1345, allocations: 193.6 kB / 370.9 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1345, allocations: 4 kB / 370.9 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009675/0.1355, allocations: 0.4968 MB / 371.4 MB, free: 136 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1355, allocations: 8 kB / 371.4 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1355, allocations: 0 / 371.4 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.1356, allocations: 4 kB / 371.4 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1927/0.3283, allocations: 125.8 kB / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.257e-05/0.3283, allocations: 3.719 kB / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006175/0.329, allocations: 33.67 kB / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.3291, allocations: 21.52 kB / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000283/0.3294, allocations: 151.7 kB / 371.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.3295, allocations: 29.62 kB / 371.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002106/0.3317, allocations: 0.6945 MB / 372.5 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.3317, allocations: 5.156 kB / 372.5 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.3317, allocations: 3.406 kB / 372.5 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.3317, allocations: 3.375 kB / 372.5 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003378/0.3351, allocations: 1.31 MB / 373.8 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3351, allocations: 6.969 kB / 373.8 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004636/0.3356, allocations: 92.33 kB / 373.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.3374, allocations: 286.9 kB / 374.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.971e-05/0.3374, allocations: 12.09 kB / 374.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003922/0.3413, allocations: 2.325 MB / 376.5 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3414, allocations: 1.375 kB / 376.5 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002189/0.3436, allocations: 1.057 MB / 377.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000168/0.3437, allocations: 151.2 kB / 377.7 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.48e-05/0.3438, allocations: 7.062 kB / 377.7 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/0.3442, allocations: 40.34 kB / 377.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.3444, allocations: 35.25 kB / 377.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.679e-05/0.3444, allocations: 22.39 kB / 377.8 MB, free: 16.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002278/0.3447, allocations: 211.6 kB / 378 MB, free: 16.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3447, allocations: 0 / 378 MB, free: 16.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005836/0.3453, allocations: 114.6 kB / 378.1 MB, free: 16.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002533/0.3478, allocations: 1.71 MB / 379.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.3488, allocations: 449 kB / 380.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3489, allocations: 384 / 380.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006893/0.3496, allocations: 393.6 kB / 380.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.3499, allocations: 35.42 kB / 380.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00473/0.3547, allocations: 3.508 MB / 384.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.3551, allocations: 0.795 MB / 385 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002632/0.3554, allocations: 44.08 kB / 385.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.3556, allocations: 119.4 kB / 385.2 MB, free: 12 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3556, allocations: 0 / 385.2 MB, free: 12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0251/0.3807, allocations: 8.802 MB / 394 MB, free: 8.941 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/0.381, allocations: 235.9 kB / 394.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.021/2.402, allocations: 4 kB / 394.2 MB, free: 8.699 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat