Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0-beta_om_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.001368/0.001368, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 227.7 MB / 247 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 69.92 kB / 307.3 MB, free: 388 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1192, allocations: 50.54 MB / 357.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004602/0.1238, allocations: 2.829 MB / 360.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002523/0.1264, allocations: 1.277 MB / 362 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.1267, allocations: 11.88 kB / 362 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003054/0.127, allocations: 75.34 kB / 362.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000645/0.1276, allocations: 227 kB / 362.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.128, allocations: 127.8 kB / 362.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.1285, allocations: 459 kB / 362.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.1287, allocations: 96.48 kB / 363 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002934/0.129, allocations: 187.4 kB / 363.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/0.1293, allocations: 219.2 kB / 363.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.519e-05/0.1294, allocations: 40 kB / 363.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.1297, allocations: 163.9 kB / 363.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.1299, allocations: 103.6 kB / 363.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.13, allocations: 179.1 kB / 363.8 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006451/0.1307, allocations: 0.5062 MB / 364.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1307, allocations: 0 / 364.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1307, allocations: 0 / 364.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1308, allocations: 0 / 364.3 MB, free: 7.328 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.001748/0.1325, allocations: 0.7054 MB / 365 MB, free: 6.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.1326, allocations: 12.02 kB / 365.1 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.146e-05/0.1327, allocations: 62.73 kB / 365.1 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.1329, allocations: 48.45 kB / 365.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.1333, allocations: 321.3 kB / 365.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.179e-05/0.1334, allocations: 62.77 kB / 365.5 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.1336, allocations: 36.3 kB / 365.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.1342, allocations: 324.5 kB / 365.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.1342, allocations: 0 / 365.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.326e-05/0.1343, allocations: 12 kB / 365.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1343, allocations: 4 kB / 365.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006735/0.135, allocations: 302 kB / 366.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.1368, allocations: 1.164 MB / 367.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006404/0.1375, allocations: 299.4 kB / 367.7 MB, free: 3.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003588/0.1378, allocations: 169.5 kB / 367.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.1379, allocations: 7.984 kB / 367.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.1379, allocations: 34.56 kB / 367.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.873e-06/0.1379, allocations: 0 / 367.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009822/0.1478, allocations: 2.418 MB / 370.3 MB, free: 1.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.78e-05/0.1479, allocations: 81.11 kB / 370.4 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004212/0.1483, allocations: 296.9 kB / 370.7 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/0.1484, allocations: 33.64 kB / 370.7 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.1485, allocations: 172.4 kB / 370.9 MB, free: 472 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1487, allocations: 145.8 kB / 371 MB, free: 324 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.1488, allocations: 82.09 kB / 371.1 MB, free: 236 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1779/0.3268, allocations: 345.4 kB / 371.4 MB, free: 19.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005993/0.3274, allocations: 157.1 kB / 371.6 MB, free: 19.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004638/0.3279, allocations: 227.5 kB / 371.8 MB, free: 19.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008548/0.3288, allocations: 405 kB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3288, allocations: 0.5938 kB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001147/0.3299, allocations: 493.9 kB / 372.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.33, allocations: 5.781 kB / 372.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.33, allocations: 1.188 kB / 372.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.33, allocations: 4.75 kB / 372.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006415/0.3307, allocations: 117.6 kB / 372.8 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.3307, allocations: 8.062 kB / 372.8 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004066/0.3311, allocations: 34.27 kB / 372.8 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.3312, allocations: 18.89 kB / 372.9 MB, free: 19.82 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001892/0.3314, allocations: 149.1 kB / 373 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-05/0.3315, allocations: 29.81 kB / 373 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.3334, allocations: 0.6515 MB / 373.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.3334, allocations: 9.062 kB / 373.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3334, allocations: 4.703 kB / 373.7 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3334, allocations: 6 kB / 373.7 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003331/0.3368, allocations: 1.272 MB / 375 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3368, allocations: 5.297 kB / 375 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004375/0.3372, allocations: 93.06 kB / 375.1 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001605/0.3388, allocations: 271.7 kB / 375.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.3389, allocations: 8.859 kB / 375.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00379/0.3427, allocations: 2.438 MB / 377.8 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3427, allocations: 4.734 kB / 377.8 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002274/0.345, allocations: 1.003 MB / 378.8 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.3452, allocations: 149.7 kB / 378.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.066e-05/0.3453, allocations: 14.56 kB / 379 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.3457, allocations: 32.52 kB / 379 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.3459, allocations: 39 kB / 379 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-05/0.3459, allocations: 14.22 kB / 379 MB, free: 16.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002584/0.3462, allocations: 214.2 kB / 379.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3462, allocations: 0 / 379.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005911/0.3468, allocations: 115.4 kB / 379.4 MB, free: 16.15 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002508/0.3493, allocations: 1.594 MB / 381 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.3505, allocations: 446.6 kB / 381.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3505, allocations: 0 / 381.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000732/0.3513, allocations: 387.3 kB / 381.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005731/0.3519, allocations: 46.16 kB / 381.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005243/0.3571, allocations: 3.859 MB / 385.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.3574, allocations: 0.7906 MB / 386.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002329/0.3576, allocations: 41.78 kB / 386.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.3578, allocations: 117.2 kB / 386.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of SimCode: time 9.91e-07/0.3578, allocations: 0 / 386.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.3953, allocations: 9.59 MB / 396.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.03, allocations: 13.17 kB / 396.2 MB, free: 7.766 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1)