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.001169/0.00117, allocations: 104.5 kB / 17.06 MB, free: 6.016 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.001242/0.001242, allocations: 196 kB / 18 MB, free: 5.094 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 43.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3259, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00561/0.3316, allocations: 2.817 MB / 403.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.334, allocations: 1.23 MB / 404.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003834/0.3344, allocations: 4 kB / 404.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003767/0.3349, allocations: 71.41 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008677/0.3358, allocations: 228.4 kB / 404.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.3362, allocations: 119.8 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006828/0.3369, allocations: 459 kB / 405.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002345/0.3371, allocations: 80.66 kB / 405.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003979/0.3375, allocations: 187.4 kB / 405.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004122/0.3379, allocations: 219.2 kB / 405.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.338, allocations: 40 kB / 405.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004063/0.3385, allocations: 163.9 kB / 405.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.3386, allocations: 95.7 kB / 405.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.3388, allocations: 187.1 kB / 406.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006974/0.3395, allocations: 0.5022 MB / 406.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3395, allocations: 0 / 406.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3396, allocations: 4 kB / 406.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.3396, allocations: 0 / 406.6 MB, free: 2.43 MB / 318.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.001859/0.3414, allocations: 0.7016 MB / 407.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3415, allocations: 15.97 kB / 407.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.3416, allocations: 58.73 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.3417, allocations: 36.56 kB / 407.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000513/0.3423, allocations: 325.3 kB / 407.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.474e-05/0.3424, allocations: 50.83 kB / 407.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.3425, allocations: 40.3 kB / 407.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006285/0.3432, allocations: 324.4 kB / 408.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.3432, allocations: 0 / 408.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.3432, allocations: 12 kB / 408.1 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3433, allocations: 4 kB / 408.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007201/0.344, allocations: 314 kB / 408.5 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.3459, allocations: 1.163 MB / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006405/0.3466, allocations: 292.4 kB / 409.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.3469, allocations: 165.6 kB / 410.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.347, allocations: 4 kB / 410.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.347, allocations: 46.55 kB / 410.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.347, allocations: 0 / 410.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.00915/0.3562, allocations: 2.405 MB / 412.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.3563, allocations: 88.98 kB / 412.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.3566, allocations: 289 kB / 412.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.3567, allocations: 33.7 kB / 412.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3568, allocations: 172.3 kB / 413.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.3569, allocations: 145.8 kB / 413.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.3571, allocations: 82.09 kB / 413.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3572, allocations: 342.8 kB / 413.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.3577, allocations: 164.8 kB / 413.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.3581, allocations: 226.7 kB / 414 MB, free: 10.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008326/0.3589, allocations: 403.5 kB / 414.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3589, allocations: 0 / 414.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001022/0.36, allocations: 492.3 kB / 414.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.36, allocations: 4 kB / 414.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.36, allocations: 4 kB / 414.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.3601, allocations: 4.188 kB / 414.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/0.3607, allocations: 127.7 kB / 415 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.3607, allocations: 4 kB / 415 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004066/0.3611, allocations: 31.98 kB / 415.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.3611, allocations: 15.98 kB / 415.1 MB, free: 9.531 MB / 334.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.0001707/0.3613, allocations: 153.7 kB / 415.2 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.3614, allocations: 31.62 kB / 415.3 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001874/0.3633, allocations: 0.6525 MB / 415.9 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3633, allocations: 4 kB / 415.9 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3633, allocations: 4 kB / 415.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.657e-06/0.3634, allocations: 3.984 kB / 415.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.3666, allocations: 1.272 MB / 417.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3666, allocations: 3.938 kB / 417.2 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004378/0.367, allocations: 87.88 kB / 417.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001528/0.3686, allocations: 268.6 kB / 417.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.509e-05/0.3686, allocations: 19.98 kB / 417.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004058/0.3727, allocations: 2.443 MB / 420 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3727, allocations: 0 / 420 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/0.3751, allocations: 1.011 MB / 421 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002563/0.3754, allocations: 156.6 kB / 421.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.097e-05/0.3754, allocations: 8 kB / 421.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004526/0.3759, allocations: 28.08 kB / 421.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.376, allocations: 44.3 kB / 421.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.354e-05/0.3761, allocations: 16 kB / 421.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002344/0.3763, allocations: 212.5 kB / 421.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3763, allocations: 0 / 421.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.377, allocations: 112 kB / 421.6 MB, free: 2.758 MB / 334.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.002734/0.3797, allocations: 1.596 MB / 423.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.3808, allocations: 426 kB / 423.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3808, allocations: 0 / 423.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007435/0.3815, allocations: 389.3 kB / 424 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005554/0.3821, allocations: 36.42 kB / 424 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005897/0.388, allocations: 3.839 MB / 427.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.3884, allocations: 0.793 MB / 428.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.3886, allocations: 42.95 kB / 428.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.3889, allocations: 115.4 kB / 428.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3889, allocations: 0 / 428.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03702/0.4259, allocations: 9.916 MB / 438.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.54, allocations: 19 kB / 438.8 MB, free: 1.621 MB / 350.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/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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches