Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 181.7 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 51.92 kB / 370.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2596, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006315/0.2659, allocations: 4.409 MB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.2689, allocations: 1.601 MB / 428.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005457/0.2694, allocations: 11.94 kB / 428.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005196/0.27, allocations: 126.9 kB / 428.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001104/0.2711, allocations: 370.6 kB / 429.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.2716, allocations: 231.6 kB / 429.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001234/0.2728, allocations: 0.9746 MB / 430.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000351/0.2732, allocations: 158.1 kB / 430.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005732/0.2738, allocations: 386.7 kB / 430.9 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00068/0.2744, allocations: 438.2 kB / 431.3 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.2746, allocations: 96 kB / 431.4 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004469/0.2751, allocations: 211.9 kB / 431.6 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.2753, allocations: 199.3 kB / 431.8 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005276/0.2758, allocations: 414.1 kB / 432.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001441/0.2773, allocations: 1.167 MB / 433.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2773, allocations: 0 / 433.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2773, allocations: 0 / 433.4 MB, free: 3.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.011e-05/0.2773, allocations: 0 / 433.4 MB, free: 3.805 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002869/0.2802, allocations: 1.038 MB / 434.4 MB, free: 2.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.2802, allocations: 12.03 kB / 434.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/0.2804, allocations: 102.6 kB / 434.5 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.2806, allocations: 84.42 kB / 434.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009045/0.2815, allocations: 461.5 kB / 435.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.2816, allocations: 127 kB / 435.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.2818, allocations: 68.3 kB / 435.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.283, allocations: 0.6058 MB / 435.8 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.2831, allocations: 0 / 435.8 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.544e-05/0.2831, allocations: 24 kB / 435.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.2831, allocations: 16 kB / 435.9 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.2843, allocations: 0.5282 MB / 436.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003885/0.2882, allocations: 2.244 MB / 438.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.2892, allocations: 460 kB / 439.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005538/0.2898, allocations: 243.2 kB / 439.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.2898, allocations: 11.92 kB / 439.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.2898, allocations: 46.5 kB / 439.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.894e-06/0.2898, allocations: 0 / 439.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01299/0.3028, allocations: 3.325 MB / 442.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.3029, allocations: 89.61 kB / 442.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000837/0.3037, allocations: 0.541 MB / 443.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.94e-05/0.3038, allocations: 33.7 kB / 443.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002564/0.304, allocations: 324.8 kB / 443.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.3042, allocations: 214.1 kB / 443.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/0.3045, allocations: 114.3 kB / 444 MB, free: 8.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.3046, allocations: 370.8 kB / 444.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005843/0.3052, allocations: 245.2 kB / 444.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006784/0.3059, allocations: 352.5 kB / 445 MB, free: 7.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.3072, allocations: 0.6032 MB / 445.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3072, allocations: 4 kB / 445.6 MB, free: 7.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001593/0.3088, allocations: 0.7477 MB / 446.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.3088, allocations: 11.28 kB / 446.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3088, allocations: 0 / 446.3 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.309, allocations: 32.84 kB / 446.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008159/0.3098, allocations: 163.8 kB / 446.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.311, allocations: 1.332 MB / 447.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006068/0.3116, allocations: 40.05 kB / 447.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.044e-05/0.3117, allocations: 27.98 kB / 447.9 MB, free: 4.723 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003217/0.312, allocations: 201.7 kB / 448.1 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.3122, allocations: 63.58 kB / 448.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.3141, allocations: 0.8319 MB / 449 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3141, allocations: 11.94 kB / 449 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3141, allocations: 4 kB / 449 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.3141, allocations: 3.984 kB / 449 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003974/0.3181, allocations: 1.812 MB / 450.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3181, allocations: 7.938 kB / 450.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000531/0.3186, allocations: 107.9 kB / 451 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002298/0.3209, allocations: 472.4 kB / 451.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.852e-05/0.321, allocations: 19.98 kB / 451.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005389/0.3264, allocations: 3.039 MB / 454.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3264, allocations: 3.938 kB / 454.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003076/0.3295, allocations: 1.374 MB / 455.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003392/0.3298, allocations: 131.7 kB / 456 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.3299, allocations: 16 kB / 456 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006263/0.3305, allocations: 47.91 kB / 456.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.3307, allocations: 52.55 kB / 456.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.3307, allocations: 16 kB / 456.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005394/0.3313, allocations: 394.8 kB / 456.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3313, allocations: 0 / 456.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007668/0.332, allocations: 187.9 kB / 456.7 MB, free: 11.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003588/0.3356, allocations: 1.957 MB / 458.6 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3372, allocations: 0.7071 MB / 459.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3372, allocations: 0 / 459.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009437/0.3381, allocations: 0.5065 MB / 459.9 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006945/0.3388, allocations: 97.84 kB / 460 MB, free: 8.426 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.3491, allocations: 5.925 MB / 465.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006379/0.3497, allocations: 0.9042 MB / 466.8 MB, free: 1.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003627/0.3501, allocations: 64.81 kB / 466.8 MB, free: 1.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004415/0.3505, allocations: 243.3 kB / 467.1 MB, free: 1.105 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3505, allocations: 0 / 467.1 MB, free: 1.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05811/0.4087, allocations: 16.32 MB / 483.4 MB, free: 1.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.4, allocations: 4.062 kB / 483.4 MB, free: 1.027 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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: 17.016720482846722]