Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 94.14 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.001168/0.001168, allocations: 180.8 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.375/1.375, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002543, allocations: 5.344 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1049, allocations: 50.42 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002953/0.1079, allocations: 2.312 MB / 353.5 MB, free: 9.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.1098, allocations: 1.146 MB / 354.7 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.11, allocations: 4 kB / 354.7 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.1102, allocations: 55.66 kB / 354.7 MB, free: 8.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005204/0.1107, allocations: 211.3 kB / 354.9 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.111, allocations: 87.83 kB / 355 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003965/0.1114, allocations: 287.8 kB / 355.3 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.1116, allocations: 69.28 kB / 355.4 MB, free: 7.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.1118, allocations: 163.5 kB / 355.5 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/0.1121, allocations: 195.3 kB / 355.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.1122, allocations: 20 kB / 355.8 MB, free: 7.121 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002815/0.1125, allocations: 139.9 kB / 355.9 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.627e-05/0.1125, allocations: 75.72 kB / 356 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.919e-05/0.1126, allocations: 85.52 kB / 356 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003864/0.113, allocations: 367 kB / 356.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.113, allocations: 0 / 356.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.113, allocations: 3.938 kB / 356.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.113, allocations: 0 / 356.4 MB, free: 6.457 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.00146/0.1145, allocations: 0.6508 MB / 357.1 MB, free: 5.758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1146, allocations: 8.031 kB / 357.1 MB, free: 5.75 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.346e-05/0.1147, allocations: 66.53 kB / 357.1 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.299e-05/0.1147, allocations: 35.62 kB / 357.2 MB, free: 5.641 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.1152, allocations: 319.8 kB / 357.5 MB, free: 5.285 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.521e-05/0.1153, allocations: 54.25 kB / 357.5 MB, free: 5.227 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.1154, allocations: 35.91 kB / 357.6 MB, free: 5.191 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005941/0.116, allocations: 332.4 kB / 357.9 MB, free: 4.855 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.116, allocations: 0 / 357.9 MB, free: 4.855 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.1161, allocations: 12 kB / 357.9 MB, free: 4.844 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1161, allocations: 8 kB / 357.9 MB, free: 4.836 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006557/0.1167, allocations: 310 kB / 358.2 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.1186, allocations: 1.164 MB / 359.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/0.1192, allocations: 305 kB / 359.7 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.1193, allocations: 7.984 kB / 359.7 MB, free: 2.965 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.1193, allocations: 38.5 kB / 359.7 MB, free: 2.918 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.1193, allocations: 4 kB / 359.7 MB, free: 2.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.009303/0.1286, allocations: 2.525 MB / 362.2 MB, free: 324 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.1287, allocations: 89.09 kB / 362.3 MB, free: 216 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003583/0.1291, allocations: 281 kB / 362.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.159e-05/0.1291, allocations: 33.7 kB / 362.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1293, allocations: 168.4 kB / 362.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.1294, allocations: 153.8 kB / 363 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.1294, allocations: 8 kB / 363 MB, free: 15.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1296, allocations: 338.8 kB / 363.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/0.13, allocations: 164.8 kB / 363.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004199/0.1304, allocations: 242.6 kB / 363.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.1308, allocations: 189.8 kB / 363.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1308, allocations: 0 / 363.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001007/0.1318, allocations: 0.4931 MB / 364.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.1319, allocations: 7.953 kB / 364.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1319, allocations: 4 kB / 364.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1319, allocations: 4 kB / 364.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000606/0.1325, allocations: 127.8 kB / 364.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.1325, allocations: 7.938 kB / 364.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003898/0.1329, allocations: 39.89 kB / 364.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.133, allocations: 19.98 kB / 364.6 MB, free: 13.91 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.0001807/0.1332, allocations: 153.7 kB / 364.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-05/0.1333, allocations: 27.72 kB / 364.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.1352, allocations: 0.6876 MB / 365.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.1352, allocations: 8 kB / 365.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.1352, allocations: 3.953 kB / 365.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1352, allocations: 3.984 kB / 365.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/0.1383, allocations: 1.318 MB / 366.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1384, allocations: 0 / 366.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.1388, allocations: 99.88 kB / 366.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001703/0.1405, allocations: 284.5 kB / 367.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.1406, allocations: 8 kB / 367.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00403/0.1446, allocations: 2.33 MB / 369.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1446, allocations: 0 / 369.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.1469, allocations: 1.055 MB / 370.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.1471, allocations: 152.6 kB / 370.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.858e-05/0.1472, allocations: 8 kB / 370.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004347/0.1476, allocations: 35.98 kB / 370.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.1478, allocations: 44.48 kB / 370.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.1478, allocations: 15.98 kB / 370.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.148, allocations: 212.4 kB / 371 MB, free: 7.215 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.148, allocations: 0 / 371 MB, free: 7.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005404/0.1486, allocations: 119.9 kB / 371.1 MB, free: 7.098 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.002716/0.1513, allocations: 1.7 MB / 372.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009413/0.1523, allocations: 449.9 kB / 373.3 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1523, allocations: 0 / 373.3 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007097/0.153, allocations: 393.4 kB / 373.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.1534, allocations: 32.42 kB / 373.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.1581, allocations: 3.517 MB / 377.2 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.1585, allocations: 0.7971 MB / 378 MB, free: 84 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002431/0.1588, allocations: 42.95 kB / 378 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002537/0.159, allocations: 119.5 kB / 378.1 MB, free: 15.92 MB / 318.1 MB Notification: Performance of SimCode: time 7.52e-07/0.159, allocations: 0 / 378.1 MB, free: 15.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02333/0.1824, allocations: 8.806 MB / 387 MB, free: 7.352 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.1826, allocations: 237.9 kB / 387.2 MB, free: 7.113 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.207, allocations: 0 / 387.2 MB, free: 7.113 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat