Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007562/0.0007562, allocations: 87.69 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008869/0.0008869, allocations: 165.3 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8662/0.8662, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.928e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003699/0.003718, allocations: 2.687 MB / 327.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.005242, allocations: 1.211 MB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.005374, allocations: 4 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.005593, allocations: 71.31 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004533/0.006046, allocations: 230.6 kB / 328.8 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.006283, allocations: 139.6 kB / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003849/0.006668, allocations: 483.3 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.006795, allocations: 52.91 kB / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000326/0.007121, allocations: 271.4 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.007302, allocations: 175.5 kB / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.413e-05/0.007347, allocations: 43.98 kB / 329.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.007552, allocations: 151.9 kB / 330.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.194e-05/0.007603, allocations: 95.69 kB / 330.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.763e-05/0.007691, allocations: 139.6 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004523/0.008143, allocations: 0.5529 MB / 330.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.008146, allocations: 0 / 330.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.008147, allocations: 0 / 330.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.008152, allocations: 0 / 330.8 MB, free: 9.648 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.0009602/0.009112, allocations: 0.6375 MB / 331.5 MB, free: 8.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.009146, allocations: 12.03 kB / 331.5 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.823e-05/0.009194, allocations: 66.67 kB / 331.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.009321, allocations: 48.73 kB / 331.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.009659, allocations: 278.5 kB / 331.9 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.608e-05/0.009725, allocations: 102.3 kB / 332 MB, free: 8.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.349e-05/0.009808, allocations: 32.73 kB / 332 MB, free: 8.398 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003814/0.01019, allocations: 359.5 kB / 332.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.0102, allocations: 0 / 332.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.01022, allocations: 12 kB / 332.4 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.01023, allocations: 8 kB / 332.4 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004392/0.01067, allocations: 301.7 kB / 332.7 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.01182, allocations: 1.038 MB / 333.7 MB, free: 6.605 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.0122, allocations: 281 kB / 334 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.01239, allocations: 149.7 kB / 334.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.0124, allocations: 8 kB / 334.1 MB, free: 6.152 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.01243, allocations: 38.56 kB / 334.2 MB, free: 6.105 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.744e-06/0.01243, allocations: 0 / 334.2 MB, free: 6.105 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.004562/0.01699, allocations: 2.271 MB / 336.4 MB, free: 3.797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.01703, allocations: 89.11 kB / 336.5 MB, free: 3.691 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.01726, allocations: 289.8 kB / 336.8 MB, free: 3.402 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.01729, allocations: 33.7 kB / 336.8 MB, free: 3.363 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.174e-05/0.01737, allocations: 172.6 kB / 337 MB, free: 3.188 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.863e-05/0.01745, allocations: 154.7 kB / 337.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-05/0.01755, allocations: 82.11 kB / 337.2 MB, free: 2.945 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.01763, allocations: 338.8 kB / 337.6 MB, free: 2.605 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.01787, allocations: 168.9 kB / 337.7 MB, free: 2.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.01812, allocations: 227.3 kB / 338 MB, free: 2.199 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005041/0.01863, allocations: 403.6 kB / 338.4 MB, free: 1.785 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.01863, allocations: 0 / 338.4 MB, free: 1.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00061/0.01924, allocations: 492.7 kB / 338.8 MB, free: 1.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.01926, allocations: 7.984 kB / 338.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.01927, allocations: 4 kB / 338.9 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.01928, allocations: 4 kB / 338.9 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.01957, allocations: 111.9 kB / 339 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.01958, allocations: 7.938 kB / 339 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.01975, allocations: 36.02 kB / 339 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.01977, allocations: 19.98 kB / 339 MB, free: 1.105 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.01988, allocations: 149.8 kB / 339.2 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.565e-05/0.01994, allocations: 43.69 kB / 339.2 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009876/0.02093, allocations: 0.6463 MB / 339.9 MB, free: 256 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.02093, allocations: 4 kB / 339.9 MB, free: 252 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.02094, allocations: 0 / 339.9 MB, free: 252 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.02094, allocations: 0 / 339.9 MB, free: 252 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.0228, allocations: 1.175 MB / 341 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.0228, allocations: 0 / 341 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.02303, allocations: 91.88 kB / 341.1 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007852/0.02382, allocations: 276.4 kB / 341.4 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.02384, allocations: 19.92 kB / 341.4 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.02618, allocations: 2.309 MB / 343.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.02618, allocations: 0 / 343.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.02749, allocations: 1.006 MB / 344.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.0276, allocations: 71.8 kB / 344.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.02763, allocations: 8 kB / 344.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.02784, allocations: 31.97 kB / 344.8 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/0.02791, allocations: 40.42 kB / 344.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.02793, allocations: 12 kB / 344.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001476/0.02808, allocations: 213.2 kB / 345.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02808, allocations: 0 / 345.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003817/0.02846, allocations: 119.9 kB / 345.2 MB, free: 10.7 MB / 314.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 (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.001577/0.03004, allocations: 1.589 MB / 346.8 MB, free: 9.078 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005674/0.03061, allocations: 415 kB / 347.2 MB, free: 8.676 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.03061, allocations: 0 / 347.2 MB, free: 8.676 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004379/0.03105, allocations: 365.4 kB / 347.6 MB, free: 8.305 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.0314, allocations: 40.98 kB / 347.6 MB, free: 8.266 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.0348, allocations: 3.763 MB / 351.4 MB, free: 4.379 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.03491, allocations: 187.1 kB / 351.6 MB, free: 4.176 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.03503, allocations: 38.97 kB / 351.6 MB, free: 4.137 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.03519, allocations: 120.4 kB / 351.7 MB, free: 4.02 MB / 314.7 MB Notification: Performance of SimCode: time 7.22e-07/0.03519, allocations: 0 / 351.7 MB, free: 4.02 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.05698, allocations: 10.27 MB / 362 MB, free: 9.914 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/7.857, allocations: 11.38 kB / 362 MB, free: 9.906 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.561929050832987]