Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001596/0.001599, allocations: 183.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.129/2.129, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 104.2 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005473/0.0005474, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3308, allocations: 47.56 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003351/0.3342, allocations: 2.253 MB / 376.9 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002591/0.3369, allocations: 1.175 MB / 378.1 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002612/0.3372, allocations: 7.188 kB / 378.1 MB, free: 42.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.3374, allocations: 59.47 kB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007782/0.3382, allocations: 206 kB / 378.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.3386, allocations: 89.45 kB / 378.4 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004859/0.3391, allocations: 285 kB / 378.7 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.3393, allocations: 66.58 kB / 378.8 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.3396, allocations: 158.7 kB / 378.9 MB, free: 42.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.34, allocations: 198.5 kB / 379.1 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.057e-05/0.34, allocations: 23.16 kB / 379.1 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004733/0.3405, allocations: 137.9 kB / 379.3 MB, free: 41.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/0.3406, allocations: 77.98 kB / 379.3 MB, free: 41.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.964e-05/0.3407, allocations: 79.11 kB / 379.4 MB, free: 41.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005215/0.3413, allocations: 367.3 kB / 379.8 MB, free: 41.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3413, allocations: 5 kB / 379.8 MB, free: 41.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3413, allocations: 0 / 379.8 MB, free: 41.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.3413, allocations: 0 / 379.8 MB, free: 41.59 MB / 298.7 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.002148/0.3435, allocations: 0.6537 MB / 380.4 MB, free: 41.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.3435, allocations: 9.625 kB / 380.4 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.576e-05/0.3436, allocations: 59.36 kB / 380.5 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.3437, allocations: 37.77 kB / 380.5 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005014/0.3443, allocations: 317.8 kB / 380.8 MB, free: 40.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.114e-05/0.3444, allocations: 47.11 kB / 380.9 MB, free: 40.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002412/0.3446, allocations: 47.19 kB / 380.9 MB, free: 40.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008964/0.3455, allocations: 325.4 kB / 381.3 MB, free: 40.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.3456, allocations: 3.938 kB / 381.3 MB, free: 40.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.499e-05/0.3456, allocations: 10.31 kB / 381.3 MB, free: 40.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3456, allocations: 10.69 kB / 381.3 MB, free: 40.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.3468, allocations: 315.2 kB / 381.6 MB, free: 40.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.3492, allocations: 1.173 MB / 382.8 MB, free: 39.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009474/0.3502, allocations: 312.3 kB / 383.1 MB, free: 39.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.3502, allocations: 3.375 kB / 383.1 MB, free: 39.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.3503, allocations: 37.03 kB / 383.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.665e-06/0.3503, allocations: 4 kB / 383.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.01611/0.3664, allocations: 2.526 MB / 385.6 MB, free: 37.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.3665, allocations: 85.05 kB / 385.7 MB, free: 37.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004126/0.3669, allocations: 288.9 kB / 386 MB, free: 37.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.367, allocations: 33.7 kB / 386 MB, free: 37.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.3671, allocations: 223 kB / 386.3 MB, free: 36.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.3672, allocations: 149.8 kB / 386.4 MB, free: 36.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.074e-05/0.3673, allocations: 4 kB / 386.4 MB, free: 36.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.86e-05/0.3673, allocations: 330.8 kB / 386.7 MB, free: 36.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006254/0.368, allocations: 176.8 kB / 386.9 MB, free: 36.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006726/0.3687, allocations: 230.7 kB / 387.1 MB, free: 35.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006792/0.3694, allocations: 197.6 kB / 387.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3694, allocations: 0 / 387.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001551/0.3709, allocations: 493.2 kB / 387.8 MB, free: 35.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.371, allocations: 4 kB / 387.8 MB, free: 35.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.371, allocations: 4 kB / 387.8 MB, free: 35.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.371, allocations: 0 / 387.8 MB, free: 35.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.3721, allocations: 127.9 kB / 387.9 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.3721, allocations: 7.938 kB / 387.9 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007168/0.3728, allocations: 39.89 kB / 388 MB, free: 35.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.443e-05/0.3729, allocations: 19.98 kB / 388 MB, free: 35.08 MB / 298.7 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.0002098/0.3731, allocations: 153.7 kB / 388.1 MB, free: 34.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.3733, allocations: 27.72 kB / 388.2 MB, free: 34.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/0.3762, allocations: 0.6798 MB / 388.9 MB, free: 34.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3762, allocations: 8 kB / 388.9 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3762, allocations: 0 / 388.9 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3762, allocations: 3.984 kB / 388.9 MB, free: 34.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004864/0.3811, allocations: 1.326 MB / 390.2 MB, free: 32.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3811, allocations: 7.938 kB / 390.2 MB, free: 32.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000823/0.382, allocations: 91.88 kB / 390.3 MB, free: 32.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002851/0.3848, allocations: 284.5 kB / 390.6 MB, free: 32.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.3849, allocations: 11.98 kB / 390.6 MB, free: 32.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00579/0.3907, allocations: 2.334 MB / 392.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3907, allocations: 0 / 392.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003648/0.3944, allocations: 1.055 MB / 394 MB, free: 28.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.3947, allocations: 140.7 kB / 394.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.948e-05/0.3948, allocations: 19.94 kB / 394.1 MB, free: 28.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007469/0.3955, allocations: 39.98 kB / 394.2 MB, free: 28.65 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.3957, allocations: 36.38 kB / 394.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.944e-05/0.3958, allocations: 12 kB / 394.2 MB, free: 28.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002667/0.396, allocations: 208.5 kB / 394.4 MB, free: 28.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.396, allocations: 0 / 394.4 MB, free: 28.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007521/0.3968, allocations: 116 kB / 394.5 MB, free: 28.29 MB / 298.7 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.004032/0.4008, allocations: 1.716 MB / 396.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.4023, allocations: 438 kB / 396.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.4024, allocations: 4.312 kB / 396.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.4034, allocations: 400.8 kB / 397.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005476/0.404, allocations: 40.2 kB / 397.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006021/0.41, allocations: 3.537 MB / 400.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.4103, allocations: 0.7933 MB / 401.4 MB, free: 21.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/0.4107, allocations: 119.4 kB / 401.6 MB, free: 21.11 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4107, allocations: 0 / 401.6 MB, free: 21.11 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.751/3.161, allocations: 6.937 MB / 408.5 MB, free: 14.18 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat