Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_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.0009861/0.0009857, allocations: 91.11 kB / 16.95 MB, free: 6.383 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.001123/0.001123, allocations: 182.9 kB / 17.84 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.744/1.744, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005229/0.0005239, allocations: 8 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1043, allocations: 47.58 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00397/0.1083, allocations: 2.349 MB / 330.8 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1106, allocations: 1.193 MB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/0.1108, allocations: 4 kB / 332 MB, free: 408 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002643/0.1111, allocations: 51.61 kB / 332.1 MB, free: 356 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005915/0.1117, allocations: 183 kB / 332.2 MB, free: 172 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002819/0.112, allocations: 91.81 kB / 332.3 MB, free: 80 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005711/0.1126, allocations: 403.1 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.1128, allocations: 69.33 kB / 332.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.1131, allocations: 159.5 kB / 332.9 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.1134, allocations: 195.3 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.1135, allocations: 24 kB / 333.1 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003088/0.1138, allocations: 139.9 kB / 333.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.721e-05/0.1139, allocations: 71.7 kB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.292e-05/0.114, allocations: 81.52 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.1144, allocations: 375.1 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1144, allocations: 0 / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1144, allocations: 0 / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1144, allocations: 0 / 333.8 MB, free: 14.59 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.001403/0.1158, allocations: 0.6548 MB / 334.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.1159, allocations: 12.03 kB / 334.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.755e-05/0.1159, allocations: 66.53 kB / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.514e-05/0.116, allocations: 35.62 kB / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004568/0.1165, allocations: 324 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.994e-05/0.1166, allocations: 50.25 kB / 334.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.1167, allocations: 39.89 kB / 335 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006277/0.1174, allocations: 324.4 kB / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1174, allocations: 0 / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.1174, allocations: 12 kB / 335.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.1175, allocations: 8 kB / 335.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006955/0.1182, allocations: 314 kB / 335.6 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.1201, allocations: 1.175 MB / 336.8 MB, free: 11.4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005839/0.1207, allocations: 301 kB / 337.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003016/0.121, allocations: 177.6 kB / 337.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.1211, allocations: 4 kB / 337.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.1211, allocations: 34.56 kB / 337.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.1211, allocations: 4 kB / 337.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.008443/0.1295, allocations: 2.533 MB / 339.8 MB, free: 8.246 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.1296, allocations: 81.11 kB / 339.9 MB, free: 8.148 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.13, allocations: 285 kB / 340.2 MB, free: 7.855 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.13, allocations: 37.7 kB / 340.2 MB, free: 7.812 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.1302, allocations: 164.4 kB / 340.4 MB, free: 7.648 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.1303, allocations: 149.9 kB / 340.5 MB, free: 7.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.1303, allocations: 12 kB / 340.5 MB, free: 7.488 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1305, allocations: 338.8 kB / 340.9 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.1309, allocations: 176.7 kB / 341 MB, free: 6.977 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.1313, allocations: 230.7 kB / 341.3 MB, free: 6.734 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004123/0.1317, allocations: 193.6 kB / 341.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1317, allocations: 0 / 341.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009627/0.1327, allocations: 0.497 MB / 342 MB, free: 6.043 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.1327, allocations: 8 kB / 342 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1327, allocations: 0 / 342 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.1328, allocations: 4 kB / 342 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005633/0.1333, allocations: 127.9 kB / 342.1 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.1333, allocations: 7.938 kB / 342.1 MB, free: 5.898 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003659/0.1337, allocations: 31.98 kB / 342.1 MB, free: 5.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.1338, allocations: 19.98 kB / 342.2 MB, free: 5.848 MB / 286.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.0001924/0.134, allocations: 161.7 kB / 342.3 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.494e-05/0.1341, allocations: 27.72 kB / 342.3 MB, free: 5.652 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/0.1358, allocations: 0.6876 MB / 343 MB, free: 4.949 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1358, allocations: 4 kB / 343 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.1359, allocations: 4 kB / 343 MB, free: 4.941 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.1359, allocations: 3.984 kB / 343 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002953/0.1388, allocations: 1.31 MB / 344.3 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.1389, allocations: 4 kB / 344.4 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004199/0.1393, allocations: 95.88 kB / 344.4 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.1408, allocations: 288.5 kB / 344.7 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/0.1409, allocations: 8 kB / 344.7 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003635/0.1445, allocations: 2.284 MB / 347 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1445, allocations: 0 / 347 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/0.1467, allocations: 1.046 MB / 348.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/0.1469, allocations: 148.8 kB / 348.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.1469, allocations: 8 kB / 348.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004135/0.1474, allocations: 43.86 kB / 348.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.1475, allocations: 40.38 kB / 348.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.1475, allocations: 15.94 kB / 348.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.1477, allocations: 212.5 kB / 348.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1478, allocations: 0 / 348.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005698/0.1483, allocations: 115.9 kB / 348.6 MB, free: 15.1 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.002557/0.1509, allocations: 1.622 MB / 350.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009456/0.1519, allocations: 450 kB / 350.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1519, allocations: 0 / 350.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006688/0.1525, allocations: 401.2 kB / 351.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.1531, allocations: 40.52 kB / 351.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004212/0.1573, allocations: 2.616 MB / 353.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.1577, allocations: 0.7894 MB / 354.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000228/0.1579, allocations: 42.95 kB / 354.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.1581, allocations: 115.4 kB / 354.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1582, allocations: 0 / 354.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.1839, allocations: 8.826 MB / 363.5 MB, free: 80 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/0.1842, allocations: 244.1 kB / 363.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.301/2.485, allocations: 0 / 363.8 MB, free: 15.83 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat