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.0007748/0.000775, allocations: 96.58 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008518/0.0008518, allocations: 193 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.0003119, allocations: 8 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1194, allocations: 51.5 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003066/0.1225, allocations: 2.413 MB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1244, allocations: 1.185 MB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.1246, allocations: 4 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.1248, allocations: 55.59 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004392/0.1252, allocations: 187 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.1254, allocations: 91.88 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003762/0.1258, allocations: 399.1 kB / 362.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.126, allocations: 69.33 kB / 362.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000235/0.1262, allocations: 159.5 kB / 362.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.1265, allocations: 199.2 kB / 363.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.963e-05/0.1266, allocations: 24 kB / 363.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.1268, allocations: 143.9 kB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.085e-05/0.1269, allocations: 75.72 kB / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.127, allocations: 77.58 kB / 363.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.1274, allocations: 379.1 kB / 363.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1275, allocations: 0 / 363.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1275, allocations: 0 / 363.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1275, allocations: 0 / 363.7 MB, free: 8.523 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.001432/0.1289, allocations: 0.6586 MB / 364.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.129, allocations: 12.03 kB / 364.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.117e-05/0.129, allocations: 62.55 kB / 364.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.1292, allocations: 47.52 kB / 364.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.1296, allocations: 324 kB / 364.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.51e-05/0.1297, allocations: 50.27 kB / 364.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.1298, allocations: 39.97 kB / 364.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005766/0.1304, allocations: 324.5 kB / 365.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1304, allocations: 0 / 365.2 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.1305, allocations: 12 kB / 365.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1305, allocations: 11.98 kB / 365.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006317/0.1311, allocations: 310 kB / 365.6 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.1328, allocations: 1.164 MB / 366.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005653/0.1334, allocations: 305 kB / 367 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003074/0.1337, allocations: 173.5 kB / 367.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.1337, allocations: 8 kB / 367.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.1338, allocations: 30.56 kB / 367.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/0.1338, allocations: 4 kB / 367.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.008512/0.1423, allocations: 2.537 MB / 369.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.1424, allocations: 81.11 kB / 369.9 MB, free: 2.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/0.1427, allocations: 285 kB / 370.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.1428, allocations: 29.7 kB / 370.2 MB, free: 1.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1429, allocations: 184.3 kB / 370.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.143, allocations: 137.9 kB / 370.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/0.143, allocations: 8 kB / 370.5 MB, free: 1.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1432, allocations: 338.8 kB / 370.8 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.1436, allocations: 176.8 kB / 371 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000405/0.144, allocations: 238.6 kB / 371.2 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004284/0.1444, allocations: 201.5 kB / 371.4 MB, free: 472 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.1444, allocations: 0 / 371.4 MB, free: 472 kB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.2093/0.3537, allocations: 494.8 kB / 371.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/0.3538, allocations: 6.422 kB / 371.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3538, allocations: 1.375 kB / 371.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.3539, allocations: 3.969 kB / 371.9 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007623/0.3546, allocations: 124.3 kB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.3547, allocations: 5.859 kB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.3551, allocations: 36.31 kB / 372.1 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.3552, allocations: 20.42 kB / 372.1 MB, free: 19.44 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.0002076/0.3554, allocations: 154.7 kB / 372.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.3555, allocations: 35.98 kB / 372.3 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/0.3575, allocations: 0.6873 MB / 373 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.3575, allocations: 5.156 kB / 373 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.3575, allocations: 0.8438 kB / 373 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.3575, allocations: 3.516 kB / 373 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003306/0.3609, allocations: 1.314 MB / 374.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.3609, allocations: 1.312 kB / 374.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004687/0.3614, allocations: 94.97 kB / 374.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001764/0.3631, allocations: 286.5 kB / 374.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.845e-05/0.3632, allocations: 12.14 kB / 374.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003697/0.3669, allocations: 2.274 MB / 376.9 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3669, allocations: 2.453 kB / 377 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002185/0.3691, allocations: 1.052 MB / 378 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001754/0.3693, allocations: 147.3 kB / 378.1 MB, free: 16.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.3694, allocations: 11.38 kB / 378.2 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004098/0.3698, allocations: 37.98 kB / 378.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.3699, allocations: 35.44 kB / 378.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-05/0.37, allocations: 18.14 kB / 378.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.3702, allocations: 211.2 kB / 378.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3702, allocations: 1.594 kB / 378.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005918/0.3708, allocations: 115 kB / 378.6 MB, free: 16.7 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.002611/0.3734, allocations: 1.637 MB / 380.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.3745, allocations: 446.5 kB / 380.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3746, allocations: 384 / 380.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007297/0.3753, allocations: 390.9 kB / 381 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/0.3758, allocations: 54.48 kB / 381.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004514/0.3804, allocations: 2.601 MB / 383.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3807, allocations: 0.7913 MB / 384.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002549/0.3809, allocations: 40.88 kB / 384.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.3812, allocations: 118.5 kB / 384.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3812, allocations: 0 / 384.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.4076, allocations: 8.831 MB / 393.5 MB, free: 9.965 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.4078, allocations: 238.5 kB / 393.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.47, allocations: 0 / 393.7 MB, free: 9.73 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