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.00106/0.00106, 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.00119/0.00119, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.84 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09672/0.09796, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004219/0.1022, allocations: 2.825 MB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002229/0.1045, allocations: 1.293 MB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003255/0.1048, allocations: 7.938 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.1052, allocations: 63.42 kB / 361.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007562/0.106, allocations: 227 kB / 362 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.1064, allocations: 127.8 kB / 362.1 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005592/0.1069, allocations: 459 kB / 362.6 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.1071, allocations: 88.59 kB / 362.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003904/0.1075, allocations: 191.4 kB / 362.8 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.108, allocations: 211.2 kB / 363.1 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.1081, allocations: 40 kB / 363.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004206/0.1085, allocations: 167.9 kB / 363.3 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.1087, allocations: 99.59 kB / 363.4 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002963/0.109, allocations: 183.2 kB / 363.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008291/0.1098, allocations: 0.5101 MB / 364 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1098, allocations: 0 / 364 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1098, allocations: 0 / 364 MB, free: 7.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.1099, allocations: 0 / 364 MB, free: 7.492 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.002727/0.1126, allocations: 0.7015 MB / 364.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.438e-05/0.1127, allocations: 12.03 kB / 364.8 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.1128, allocations: 66.72 kB / 364.8 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003056/0.1131, allocations: 52.39 kB / 364.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006655/0.1138, allocations: 325.3 kB / 365.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.592e-05/0.1139, allocations: 54.77 kB / 365.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/0.1142, allocations: 44.3 kB / 365.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009626/0.1152, allocations: 320.5 kB / 365.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.1152, allocations: 0 / 365.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.314e-05/0.1153, allocations: 12 kB / 365.6 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1153, allocations: 4 kB / 365.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.1164, allocations: 302 kB / 365.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00288/0.1193, allocations: 1.167 MB / 367.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/0.1202, allocations: 297 kB / 367.4 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005352/0.1208, allocations: 169.5 kB / 367.5 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.1208, allocations: 4 kB / 367.5 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.1209, allocations: 34.56 kB / 367.6 MB, free: 3.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 3.407e-06/0.1209, allocations: 0 / 367.6 MB, free: 3.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.01388/0.1348, allocations: 2.422 MB / 370 MB, free: 1.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/0.1349, allocations: 85.05 kB / 370.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000549/0.1355, allocations: 292.9 kB / 370.4 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.641e-05/0.1356, allocations: 29.7 kB / 370.4 MB, free: 0.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.1357, allocations: 176.4 kB / 370.6 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.1359, allocations: 145.8 kB / 370.7 MB, free: 484 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/0.1361, allocations: 78.11 kB / 370.8 MB, free: 400 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.1363, allocations: 346.7 kB / 371.1 MB, free: 44 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1908/0.3271, allocations: 155.7 kB / 371.3 MB, free: 20.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004766/0.3276, allocations: 227.9 kB / 371.5 MB, free: 20.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008418/0.3285, allocations: 404.9 kB / 371.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3285, allocations: 0.9688 kB / 371.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00116/0.3297, allocations: 486.7 kB / 372.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.3297, allocations: 6.969 kB / 372.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.3297, allocations: 5.188 kB / 372.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.3297, allocations: 3.812 kB / 372.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.3304, allocations: 118.8 kB / 372.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.3304, allocations: 3.734 kB / 372.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004166/0.3308, allocations: 38.03 kB / 372.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.3308, allocations: 18.45 kB / 372.6 MB, free: 20.03 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.0001793/0.331, allocations: 157.7 kB / 372.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.343e-05/0.3311, allocations: 30.25 kB / 372.7 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.333, allocations: 0.6493 MB / 373.4 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.333, allocations: 5.219 kB / 373.4 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3331, allocations: 1.578 kB / 373.4 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.3331, allocations: 9.5 kB / 373.4 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003422/0.3365, allocations: 1.282 MB / 374.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3365, allocations: 0 / 374.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005077/0.3371, allocations: 89.61 kB / 374.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001712/0.3388, allocations: 271.5 kB / 375 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.812e-05/0.3388, allocations: 8.625 kB / 375 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003828/0.3427, allocations: 2.441 MB / 377.5 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3427, allocations: 1.5 kB / 377.5 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.3451, allocations: 1.014 MB / 378.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/0.3454, allocations: 148.4 kB / 378.7 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.091e-05/0.3454, allocations: 12.19 kB / 378.7 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/0.3459, allocations: 24.67 kB / 378.7 MB, free: 16.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.346, allocations: 38.77 kB / 378.7 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.275e-05/0.346, allocations: 18.48 kB / 378.7 MB, free: 16.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.3463, allocations: 213.3 kB / 379 MB, free: 16.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3463, allocations: 1.25 kB / 379 MB, free: 16.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005826/0.3469, allocations: 119.2 kB / 379.1 MB, free: 16.37 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.002566/0.3494, allocations: 1.59 MB / 380.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.3506, allocations: 450.2 kB / 381.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3506, allocations: 0 / 381.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006485/0.3512, allocations: 381.2 kB / 381.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.3518, allocations: 55.64 kB / 381.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005151/0.357, allocations: 3.861 MB / 385.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.3572, allocations: 0.7863 MB / 386.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002303/0.3574, allocations: 44.45 kB / 386.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.3576, allocations: 121.8 kB / 386.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3576, allocations: 0 / 386.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.3881, allocations: 9.582 MB / 395.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.29/15.68, allocations: 6.078 kB / 395.9 MB, free: 8.008 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/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) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,core.B,core.Hstat,core.MagRel,winding.i Variables in the result:core.A,core.B,core.H,core.Heddy,core.Hstat,core.LossPower,core.LossPowerEddy,core.LossPowerStat,core.MagRel,core.Phi,core.T,core.T_heatPort,core.V,core.V_m,core.asc,core.d,core.derHstat,core.includeEddyCurrents,core.l,core.mat.Hc,core.mat.Hsat,core.mat.K,core.mat.M,core.mat.p1,core.mat.p2,core.mat.q,core.mat.r,core.mat.sigma,core.port_n.Phi,core.port_n.V_m,core.port_p.Phi,core.port_p.V_m,core.sigma,core.useHeatPort,der(core.B),der(core.H2),der(core.H3),der(core.H_lim),der(core.Hstat),der(core.MagRel),der(core.P2),der(core.P3),der(core.Phi),der(core.hystF),der(core.hystR),der(winding.Phi_ind),der(winding.Phi_leak),der(winding.V_m),der(winding.i),el_ground.p.i,el_ground.p.v,mag_ground.port.Phi,mag_ground.port.V_m,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.useHeatPort,resistor.v,time,vSource.V,vSource.f,vSource.i,vSource.n.i,vSource.n.v,vSource.offset,vSource.p.i,vSource.p.v,vSource.phase,vSource.signalSource.amplitude,vSource.signalSource.continuous,vSource.signalSource.f,vSource.signalSource.offset,vSource.signalSource.phase,vSource.signalSource.startTime,vSource.signalSource.y,vSource.startTime,vSource.v,winding.A,winding.G_m,winding.L,winding.L_stat,winding.N,winding.Phi,winding.Phi_ind,winding.Phi_leak,winding.Psi,winding.V_m,winding.i,winding.mu_rel,winding.n.i,winding.n.v,winding.p.i,winding.p.v,winding.port_n.Phi,winding.port_n.V_m,winding.port_p.Phi,winding.port_p.V_m,winding.v